aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 2d5697269..4e6d50094 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -891,7 +891,8 @@ static int builtin_cd(char **argv)
891static int builtin_exec(char **argv) 891static int builtin_exec(char **argv)
892{ 892{
893 if (argv[1] == NULL) 893 if (argv[1] == NULL)
894 return EXIT_SUCCESS; /* Really? */ 894 return EXIT_SUCCESS; /* bash does this */
895// FIXME: if exec fails, bash does NOT exit! We do...
895 pseudo_exec_argv(argv + 1); 896 pseudo_exec_argv(argv + 1);
896 /* never returns */ 897 /* never returns */
897} 898}