diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index f995f6f..40787a4 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -1090,7 +1090,9 @@ static void pseudo_exec(struct child_prog *child) for (x = bltins; x->cmd; x++) { if (strcmp(child->argv[0], x->cmd) == 0 ) { debug_printf("builtin exec %s\n", child->argv[0]); - _exit(x->function(child)); + rcode = x->function(child); + fflush(stdout); + _exit(rcode); } } |