mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
Assume commands are binaries in /bin for now.
This commit is contained in:
parent
d133a2845f
commit
71ed63c91d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue