diff --git a/Userland/sh.cpp b/Userland/sh.cpp index 5dd3b123c5..358423c245 100644 --- a/Userland/sh.cpp +++ b/Userland/sh.cpp @@ -13,7 +13,9 @@ static void prompt() static int runcmd(char* cmd) { //printf("command: '%s'\n", cmd); - int ret = spawn(cmd); + char buf[128]; + sprintf(buf, "/bin/%s", cmd); + int ret = spawn(buf); if (ret == -1) { printf("spawn failed: %s\n", cmd); }