diff options
author | Ron Yorston <rmy@pobox.com> | 2017-01-03 11:18:23 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-03 11:18:23 +0100 |
commit | ea7d2f6ec0596789fc5b2e3fca3b7a602bfa2c26 (patch) | |
tree | 80bf9f7fae0b7dc5c8cd0047129ce792ceb37ec9 /shell/hush_test/hush-vars/glob_and_vars.right | |
parent | bddbeb82bfeac8d4795ab995eae09109c048e9df (diff) | |
download | busybox-ea7d2f6ec0596789fc5b2e3fca3b7a602bfa2c26.tar.gz |
ash: fix error code regression
The commit 'ash,hush: set exit code 127 in "sh /does/not/exist" case'
only partly implemented the dash commit '[ERROR] Allow the originator
of EXERROR to set the exit status'. This resulted in incorrect error
codes for a syntax error:
$ )
$ echo $?
0
or a redirection error for a special builtin:
$ rm -f xxx
$ eval cat <xxx
$ echo $?
0
Signed-off-by: Ron Yorston <rmy@pobox.com>
Reported-by: Martijn Dekker <martijn@inlv.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/glob_and_vars.right')
0 files changed, 0 insertions, 0 deletions