]> git.xolatile.top Git - emil-bake.git/commitdiff
anonymous man makes program better
authorEmil Williams <emilwilliams@tuta.io>
Mon, 26 Feb 2024 23:43:34 +0000 (23:43 +0000)
committerEmil Williams <emilwilliams@tuta.io>
Mon, 26 Feb 2024 23:43:34 +0000 (23:43 +0000)
bake.c

diff --git a/bake.c b/bake.c
index 54ebd6b868e138ec4eef77e6f1a7ebbd9b8068d4..eeaea5ae698ea6b73ed0879f2e194cc4b17e7054 100644 (file)
--- 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);