Skip to content

Commit 6f4b01a

Browse files
committed
shell handles empty input
1 parent 4af9150 commit 6f4b01a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

programs/shell.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ void _start() {
1010
while(1) {
1111
print("Shell> ");
1212
scan(input);
13-
if (strcmp(input, "help")) {
13+
if (strcmp(input, "")) {}
14+
else if (strcmp(input, "help")) {
1415
print("This is a shell running independently from the OS kernel.\r\n");
1516
print("It is capable of more the the kernel's shell.\r\n");
1617
print("Type a command to run an executable file.\r\n");

0 commit comments

Comments
 (0)