summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenys Vlasenko2016-09-29 00:30:31 +0200
committerDenys Vlasenko2016-09-29 00:30:31 +0200
commit928e2a7ef437138a7b05e02be2e0f4b10123766c (patch)
treebb4300e101473cf94389560ee5001cabc546c99e /shell/hush_test
parent8e2bc47d62d48687f681855d4b086c758ae745c4 (diff)
downloadbusybox-928e2a7ef437138a7b05e02be2e0f4b10123766c.zip
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.right1
-rwxr-xr-xshell/hush_test/hush-misc/eval1.tests4
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 0000000..7b24a35
--- /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 0000000..b78c6cc
--- /dev/null
+++ b/shell/hush_test/hush-misc/eval1.tests
@@ -0,0 +1,4 @@
+# empty eval nevertheless sets $? = 0
+false
+eval
+echo Ok:$?