diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-09-29 01:27:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-09-29 01:27:09 +0200 |
commit | 992e0ff7e9a71a85a89d4fb7b4e6ace7ba74e2ba (patch) | |
tree | 4cfe18aad25d0ea26a4f40c3570a94beb0e0bc27 /shell/hush.c | |
parent | 46a45ce02f2c6e775d437c66c5965458bb5d35d8 (diff) | |
download | busybox-w32-992e0ff7e9a71a85a89d4fb7b4e6ace7ba74e2ba.tar.gz busybox-w32-992e0ff7e9a71a85a89d4fb7b4e6ace7ba74e2ba.tar.bz2 busybox-w32-992e0ff7e9a71a85a89d4fb7b4e6ace7ba74e2ba.zip |
hush: fix ". EMPTY_LINE" not setting $? to 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index e2b0a15b8..5698de686 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -9156,6 +9156,8 @@ static int FAST_FUNC builtin_source(char **argv) | |||
9156 | if (argv[1]) | 9156 | if (argv[1]) |
9157 | save_and_replace_G_args(&sv, argv); | 9157 | save_and_replace_G_args(&sv, argv); |
9158 | 9158 | ||
9159 | /* "false; . ./empty_line; echo Zero:$?" should print 0 */ | ||
9160 | G.last_exitcode = 0; | ||
9159 | parse_and_run_file(input); | 9161 | parse_and_run_file(input); |
9160 | fclose_and_forget(input); | 9162 | fclose_and_forget(input); |
9161 | 9163 | ||