summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--nm.c10
2 files changed, 7 insertions, 6 deletions
diff --git a/README.md b/README.md
index 071cde5..6b2cc5b 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
# noshmore - noshell more
-an extended version of the [nosh minimal POSIX C shell](https://github.com/jstmaxlol/nosh), still for \*NIX dudes!
+a minimal and suckless POSIX C99 shell. \
+also an extended version of the [nosh minimal POSIX C shell](https://github.com/jstmaxlol/nosh), still for \*NIX dudes!
### differences
- uses [GNU Readline] which is an external dependancy \
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"