diff --git a/apps/src/sh.c b/apps/src/sh.c index f06c7814..8545f485 100644 --- a/apps/src/sh.c +++ b/apps/src/sh.c @@ -108,6 +108,11 @@ int command_match_builtins(command_t* cmd) printf("pid %ld, ppid %ld, uid %d (%s), gid %d\n", getpid(), getppid(), getuid(), username, getgid()); return 1; } + if (command_matches(cmd, "sleep")) + { + sleep(atoi(cmd->buffer + 6)); + return 1; + } if (command_matches_exactly(cmd, "clear")) { fputs("\033@", stdout); // clear screen. for now, escape sequences in luna are non-standard.