aboutsummaryrefslogtreecommitdiff
path: root/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'hush.c')
-rw-r--r--hush.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hush.c b/hush.c
index f995f6f20..40787a464 100644
--- a/hush.c
+++ b/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