diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2026-04-10 17:11:25 +0200 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2026-04-10 17:11:25 +0200 |
| commit | 94b4e6ff6e9dfce7622e8fd6480aded4c4814cd8 (patch) | |
| tree | 0051ce0567ad08f93d0015d2ee34ef6c2dbed806 | |
| parent | accd3b2d959bfc0e8a8aa0f148ebef5871529f47 (diff) | |
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | nm.c | 10 |
2 files changed, 7 insertions, 6 deletions
@@ -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 \ @@ -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" |