summaryrefslogtreecommitdiff
path: root/nm.c
diff options
context:
space:
mode:
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"