aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-22 22:34:51 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-22 22:34:51 +0000
commit5b8ae6b0f9f2002b1a2d555ed963bbc9212a27cf (patch)
treed0c71adb5b72fd47d28c21dc957f0a7192dd00c6 /shell
parentac1d29391e224dba6650ed9416ba4d3f3ff9cb20 (diff)
downloadbusybox-w32-5b8ae6b0f9f2002b1a2d555ed963bbc9212a27cf.tar.gz
busybox-w32-5b8ae6b0f9f2002b1a2d555ed963bbc9212a27cf.tar.bz2
busybox-w32-5b8ae6b0f9f2002b1a2d555ed963bbc9212a27cf.zip
Excellent. This patch from Larry fixes the behavior of hush
when builtins are included in pipes. git-svn-id: svn://busybox.net/trunk/busybox@2710 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index f995f6f20..40787a464 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1090,7 +1090,9 @@ static void pseudo_exec(struct child_prog *child)
1090 for (x = bltins; x->cmd; x++) { 1090 for (x = bltins; x->cmd; x++) {
1091 if (strcmp(child->argv[0], x->cmd) == 0 ) { 1091 if (strcmp(child->argv[0], x->cmd) == 0 ) {
1092 debug_printf("builtin exec %s\n", child->argv[0]); 1092 debug_printf("builtin exec %s\n", child->argv[0]);
1093 _exit(x->function(child)); 1093 rcode = x->function(child);
1094 fflush(stdout);
1095 _exit(rcode);
1094 } 1096 }
1095 } 1097 }
1096 1098