ckiss

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 37204b1ac1f56b5843bc56a5fd85ae36801452e4
parent 6121d51d9f1a0458bdcdedc00ce413d2c1bd58c9
Author: phoebos <ben@bvnf.space>
Date:   Tue, 27 Jun 2023 23:07:11 +0100

run: print commands too

Diffstat:
Msrc/utils.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/utils.c b/src/utils.c @@ -360,6 +360,13 @@ destroy_env(struct env *e) { int run(char *argv[]) { + char *sep = ""; + for (int i = 0; argv[i] != NULL; i++) { + fprintf(stderr, "%s%s", sep, argv[i]); + sep = " "; + } + fprintf(stderr, "\n"); + pid_t pid = fork(); int stat_loc;