diff options
author | dzwdz | 2021-10-13 21:47:47 +0200 |
---|---|---|
committer | dzwdz | 2021-10-13 21:47:47 +0200 |
commit | fbca0c5aed51e46e82741d3ed7d8325361631f94 (patch) | |
tree | c450a67adb1dc64bee9b28c28cd88cec3375bce6 | |
parent | 68c2ef59c06c8c20887b4499cfeabe308171351e (diff) |
init/shell: implement the `exit` command
-rw-r--r-- | src/init/shell.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init/shell.c b/src/init/shell.c index 6002156..6b195cc 100644 --- a/src/init/shell.c +++ b/src/init/shell.c @@ -70,6 +70,8 @@ void shell_loop(void) { printf("%s\n", args); } else if (!strcmp(cmd, "cat")) { cmd_cat(args); + } else if (!strcmp(cmd, "exit")) { + _syscall_exit(0); } else { printf("unknown command :(\n"); } |