aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-09-29 00:30:31 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-09-29 00:30:31 +0200
commit928e2a7ef437138a7b05e02be2e0f4b10123766c (patch)
treebb4300e101473cf94389560ee5001cabc546c99e /shell/ash_test
parent8e2bc47d62d48687f681855d4b086c758ae745c4 (diff)
downloadbusybox-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/ash_test')
-rw-r--r--shell/ash_test/ash-misc/eval1.right1
-rwxr-xr-xshell/ash_test/ash-misc/eval1.tests4
2 files changed, 5 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/eval1.right b/shell/ash_test/ash-misc/eval1.right
new file mode 100644
index 000000000..7b24a35ff
--- /dev/null
+++ b/shell/ash_test/ash-misc/eval1.right
@@ -0,0 +1 @@
+Ok:0
diff --git a/shell/ash_test/ash-misc/eval1.tests b/shell/ash_test/ash-misc/eval1.tests
new file mode 100755
index 000000000..b78c6cc94
--- /dev/null
+++ b/shell/ash_test/ash-misc/eval1.tests
@@ -0,0 +1,4 @@
+# empty eval nevertheless sets $? = 0
+false
+eval
+echo Ok:$?