mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
Assume commands are binaries in /bin for now.
This commit is contained in:
parent
d133a2845f
commit
71ed63c91d
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue