From a5aa6c466a161c5f5e510c79a49b33b55e6b1e40 Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Mon, 26 Feb 2024 23:43:34 +0000 Subject: [PATCH] anonymous man makes program better --- bake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bake.c b/bake.c index 54ebd6b..eeaea5a 100644 --- a/bake.c +++ b/bake.c @@ -306,7 +306,7 @@ run(char * buf) { fputs(GREEN "output" RESET ":\n", stderr); pid_t pid = fork(); if (!pid) { - execl("/bin/sh", "-c", "'ls bake.c'", NULL); + execl("/bin/sh", "sh", "-c", buf, NULL); } else { int status; waitpid(pid, &status, 0);