From e15c139924df0b56f376ebdeb01c56852de50984 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 19:38:12 -0700 Subject: cmdstack so that we can go back up the tree with backspace --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command.c') diff --git a/command.c b/command.c index bf9003f..9701408 100644 --- a/command.c +++ b/command.c @@ -17,7 +17,7 @@ command_is_prefix(struct command *cmd) { void command_exec(struct command *cmd) { - execlp(cmd->name, cmd->name, (char *)NULL); + execlp("/bin/sh", "sh", "-c", cmd->name, (char *) 0); err(1, "executing command %s", cmd->name); } -- cgit v1.2.3