CeDOS - Commit 57a8030b

Shelf: Add exit command
Celina Sophie Kalus
Tue, 28 Nov 2023 23:50:39 +0100
1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M shell/shelf.cshell/shelf.c

@@ -1,5 +1,6 @@

#include "cedos.h" #include "stdio.h" +#include "string.h" #include <stdint.h>

@@ -58,6 +59,11 @@ i++;

} //printf("Executing %s...\n", buffer); + + if (strcmp(file, "exit") == 0) { + printf("Thank you for using ShELF!\n"); + break; + } int pid = process_spawn(file, args);