Assume commands are binaries in /bin for now.

This commit is contained in:
Andreas Kling 2018-10-23 13:05:50 +02:00
parent d133a2845f
commit 71ed63c91d

View file

@ -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);
}