diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-09-29 00:30:31 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-09-29 00:30:31 +0200 |
commit | 928e2a7ef437138a7b05e02be2e0f4b10123766c (patch) | |
tree | bb4300e101473cf94389560ee5001cabc546c99e /shell/hush_test | |
parent | 8e2bc47d62d48687f681855d4b086c758ae745c4 (diff) | |
download | busybox-928e2a7ef437138a7b05e02be2e0f4b10123766c.tar.gz |
ash: [EVAL] Make eval with empty arguments return 0
This is a backport of upstream commit:
[EVAL] Make eval with empty arguments return 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-misc/eval1.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/eval1.tests | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/eval1.right b/shell/hush_test/hush-misc/eval1.right new file mode 100644 index 000000000..7b24a35ff --- /dev/null +++ b/shell/hush_test/hush-misc/eval1.right @@ -0,0 +1 @@ +Ok:0 diff --git a/shell/hush_test/hush-misc/eval1.tests b/shell/hush_test/hush-misc/eval1.tests new file mode 100755 index 000000000..b78c6cc94 --- /dev/null +++ b/shell/hush_test/hush-misc/eval1.tests @@ -0,0 +1,4 @@ +# empty eval nevertheless sets $? = 0 +false +eval +echo Ok:$? |