From 94b4e6ff6e9dfce7622e8fd6480aded4c4814cd8 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Fri, 10 Apr 2026 17:11:25 +0200 Subject: version 2.21 Signed-off-by: czjstmax --- README.md | 3 ++- nm.c | 10 +++++----- 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 @@ -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" -- cgit v1.3.1