1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

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
Notes: sideshowbarker 2024-07-19 18:44:40 +09:00

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