aboutsummaryrefslogtreecommitdiff
path: root/shell/bbsh.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/bbsh.c')
-rw-r--r--shell/bbsh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/bbsh.c b/shell/bbsh.c
index 06fd0131e..6bef3685a 100644
--- a/shell/bbsh.c
+++ b/shell/bbsh.c
@@ -165,7 +165,7 @@ static int run_pipeline(struct pipeline *line)
165 int status; 165 int status;
166 pid_t pid=fork(); 166 pid_t pid=fork();
167 if(!pid) { 167 if(!pid) {
168 run_applet_by_name(cmd->argv[0],cmd->argc,cmd->argv); 168 run_applet_and_exit(cmd->argv[0],cmd->argc,cmd->argv);
169 execvp(cmd->argv[0],cmd->argv); 169 execvp(cmd->argv[0],cmd->argv);
170 printf("No %s",cmd->argv[0]); 170 printf("No %s",cmd->argv[0]);
171 exit(1); 171 exit(1);