diff options
author | Ron Yorston | 2017-01-03 11:18:23 +0100 |
---|---|---|
committer | Denys Vlasenko | 2017-01-10 16:55:51 +0100 |
commit | 568cabf98a11e2e594243a309a9ffd7729a2b213 (patch) | |
tree | 786f2620a7217e3c7238df0fe39b9be351d42ef1 /testsuite/head/head-n-works | |
parent | e94d2c5f242c793db1d76a4c0a63740de8ae6899 (diff) | |
download | busybox-568cabf98a11e2e594243a309a9ffd7729a2b213.zip busybox-568cabf98a11e2e594243a309a9ffd7729a2b213.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 'testsuite/head/head-n-works')
0 files changed, 0 insertions, 0 deletions