If it fails to run a builtin, let it fall through to
authorEric Andersen <andersen@codepoet.org>
Fri, 4 May 2001 16:30:29 +0000 (16:30 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 4 May 2001 16:30:29 +0000 (16:30 -0000)
exec the real thing.
 -Erik

hush.c
shell/hush.c

diff --git a/hush.c b/hush.c
index a7316f82eabcb8c98ea5daab55b43066c26576f3..71e40489dd8699d4322c30b5edefffdd01ad1ec1 100644 (file)
--- a/hush.c
+++ b/hush.c
@@ -1019,7 +1019,6 @@ static void pseudo_exec(struct child_prog *child)
                        optind = 1;
                        debug_printf("running applet %s\n", name);
                        run_applet_by_name(name, argc_l, child->argv);
-                       exit(1);
                }
 #endif
                debug_printf("exec of %s\n",child->argv[0]);
index a7316f82eabcb8c98ea5daab55b43066c26576f3..71e40489dd8699d4322c30b5edefffdd01ad1ec1 100644 (file)
@@ -1019,7 +1019,6 @@ static void pseudo_exec(struct child_prog *child)
                        optind = 1;
                        debug_printf("running applet %s\n", name);
                        run_applet_by_name(name, argc_l, child->argv);
-                       exit(1);
                }
 #endif
                debug_printf("exec of %s\n",child->argv[0]);