diff options
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | nm.c | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,9 @@ # noshmore - noshell more 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 \ + but it allows for great arrow-keys handling, history and \ + MORE without having to touch `<termios.h>`. + +- it also fixes some minor memory leaks and stuff from nosh. @@ -27,6 +27,8 @@ int main(void) { signal(SIGINT, handlecc); char *USER = getenv("USER"); + if (!USER) + USER = "god"; while (true) { char prompt[strlen(USER) + strlen("$ ") + 1]; |