From 928e2a7ef437138a7b05e02be2e0f4b10123766c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 29 Sep 2016 00:30:31 +0200 Subject: 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 --- shell/ash_test/ash-misc/eval1.right | 1 + shell/ash_test/ash-misc/eval1.tests | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 shell/ash_test/ash-misc/eval1.right create mode 100755 shell/ash_test/ash-misc/eval1.tests (limited to 'shell/ash_test/ash-misc') diff --git a/shell/ash_test/ash-misc/eval1.right b/shell/ash_test/ash-misc/eval1.right new file mode 100644 index 0000000..7b24a35 --- /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 0000000..b78c6cc --- /dev/null +++ b/shell/ash_test/ash-misc/eval1.tests @@ -0,0 +1,4 @@ +# empty eval nevertheless sets $? = 0 +false +eval +echo Ok:$? -- cgit v1.1