From c1a2bb29b9110be99c3fe60848dd64291cd14f06 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 28 Dec 2023 22:23:57 +0100 Subject: Call execvp() directly in __rebuild() --- cbs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cbs.h b/cbs.h index 1fadd5d..f6a7b00 100644 --- a/cbs.h +++ b/cbs.h @@ -450,7 +450,8 @@ __rebuild(char *src) cmdclr(&cmd); cmdaddv(&cmd, __cbs_argv, __cbs_argc); cmdput(cmd); - exit(cmdexec(cmd)); + execvp(*cmd.argv, cmd.argv); + die("execvp: %s", *cmd.argv); } int -- cgit v1.2.3