summaryrefslogtreecommitdiff
path: root/nm.c
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-04-10 17:11:25 +0200
committerczjstmax <jstmaxlol@disroot.org>2026-04-10 17:11:25 +0200
commit94b4e6ff6e9dfce7622e8fd6480aded4c4814cd8 (patch)
tree0051ce0567ad08f93d0015d2ee34ef6c2dbed806 /nm.c
parentaccd3b2d959bfc0e8a8aa0f148ebef5871529f47 (diff)
version 2.21HEADmaster
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'nm.c')
-rw-r--r--nm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nm.c b/nm.c
index f4545a5..bd0fd37 100644
--- a/nm.c
+++ b/nm.c
@@ -16,7 +16,7 @@
#define _POSIX_C_SOURCE 200809L
-#define NOSHMORE_VERSION 2.2
+#define NOSHMORE_VERSION 2.21
#define MAX_ALIASES 256
#include <stdio.h>
@@ -52,12 +52,12 @@ void HandleCC (int sig);
Alias CreateAlias (char *dst, char *src);
void FreeAll ();
void FreeAliases ();
-void Cleanup ();
+void Cleanup ();
void Greet()
{
printf(
- "welcome to %s%snoshmore%s | spinning version %s%s%s%.1f%s\n"
+ "welcome to %s%snoshmore%s | spinning version %s%s%s%.2f%s\n"
"type %s%shelp%s for a list of %sbuilt-in%s commands!\n"
, RED, ITALIC, RESET, UNDERLINE, RED, ITALIC, NOSHMORE_VERSION, RESET
, RED, ITALIC, RESET, ITALIC, RESET
@@ -87,7 +87,7 @@ int main(void)
if (access(history_path, F_OK) == 0)
read_history(history_path);
else {
- perror("nsh+! ERROR: couldn't load command history");
+ fprintf(stderr, "nsh+! ERROR: couldn't load command history\n");
fprintf(stderr, "(%sfirst run? try the %swritehist%s%s command%s)\n", ITALIC, RED, RESET, ITALIC, RESET);
}
@@ -202,7 +202,7 @@ int main(void)
}
else if (strcmp(p.we_wordv[0], "help") == 0) {
printf(
- "%snoshmore%s\tVERSION(%.1f)\tALIASES(%d)\n"
+ "%snoshmore%s\tVERSION(%.2f)\tALIASES(%d)\n"
"an extended version of %snosh%s, the minimal POSIX C shell.\n"
"history file path -> '%s%s%s%s'\n"
//"note: you can access this file by the %sNOSH_HIST%s alias\n"