From 21b7f1b6b67f191ca187910a5fd4cd2cb1eb5353 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 5 Apr 2018 15:15:53 +0200 Subject: hush: fix a few more corner cases with empty-expanding `cmds` See added testcases function old new delta run_pipe 1723 1784 +61 Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-psubst/falsetick2.right | 1 + shell/hush_test/hush-psubst/falsetick2.tests | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 shell/hush_test/hush-psubst/falsetick2.right create mode 100755 shell/hush_test/hush-psubst/falsetick2.tests (limited to 'shell/hush_test/hush-psubst') diff --git a/shell/hush_test/hush-psubst/falsetick2.right b/shell/hush_test/hush-psubst/falsetick2.right new file mode 100644 index 000000000..670f560f1 --- /dev/null +++ b/shell/hush_test/hush-psubst/falsetick2.right @@ -0,0 +1 @@ +Two:2 v:[] diff --git a/shell/hush_test/hush-psubst/falsetick2.tests b/shell/hush_test/hush-psubst/falsetick2.tests new file mode 100755 index 000000000..cfbd1a5de --- /dev/null +++ b/shell/hush_test/hush-psubst/falsetick2.tests @@ -0,0 +1,3 @@ +v=v +v=`exit 2` `false` +echo Two:$? v:"[$v]" -- cgit v1.2.3