commit e5e26f31af169d0dea45d50d05b27e42c6ebfbeb from: Stefan Sperling date: Mon Sep 25 13:30:05 2023 UTC make -current builds display build timestamp and compilation info in greeting Suggested by Tom commit - 63eda621ba3d2ebe9b75c7c2d4298b72de935252 commit + e5e26f31af169d0dea45d50d05b27e42c6ebfbeb blob - 7bd989ba345e025a9879dd507c0390f836e45189 blob + 1ee7b665550a2e31deb6852b908d2c6b7beb8124 --- main.c +++ main.c @@ -203,8 +203,13 @@ main(int argc, char *argv[]) "will switch to the root user.\n"); } - if (!privexec) - printf("%% NSH v%s\n", vers); + if (!privexec) { + if (strstr(vers, "-current") != NULL) + printf("%% NSH v%s; Compiled by %s@%s on %s\n", + vers, compiledby, compilehost, compiled); + else + printf("%% NSH v%s\n", vers); + } } else { /* * We need line-buffered mode to cross seamlessly into