From f90ab183d63c64fd2c35f00d65aedbaae8402740 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 20 Mar 2008 21:19:35 +0000 Subject: *: use fopen_or_warn in few more places --- shell/hush.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell') 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) static int builtin_exec(char **argv) { if (argv[1] == NULL) - return EXIT_SUCCESS; /* Really? */ + return EXIT_SUCCESS; /* bash does this */ +// FIXME: if exec fails, bash does NOT exit! We do... pseudo_exec_argv(argv + 1); /* never returns */ } -- cgit v1.2.3