summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
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);
}