From 1237d627e9fd996cc3d96ba72629371739fef776 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 25 Dec 2020 19:01:49 +0100 Subject: hush: fix this case: echo "SCRIPT" | hush Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-misc/piped_input.right | 2 ++ shell/ash_test/ash-misc/piped_input.tests | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 shell/ash_test/ash-misc/piped_input.right create mode 100755 shell/ash_test/ash-misc/piped_input.tests (limited to 'shell/ash_test') diff --git a/shell/ash_test/ash-misc/piped_input.right b/shell/ash_test/ash-misc/piped_input.right new file mode 100644 index 0000000..7b8bf67 --- /dev/null +++ b/shell/ash_test/ash-misc/piped_input.right @@ -0,0 +1,2 @@ +TEST +One:1 diff --git a/shell/ash_test/ash-misc/piped_input.tests b/shell/ash_test/ash-misc/piped_input.tests new file mode 100755 index 0000000..ec7e498 --- /dev/null +++ b/shell/ash_test/ash-misc/piped_input.tests @@ -0,0 +1,3 @@ +exed 2>&1 +echo 'echo TEST; false' | $THIS_SH +echo One:$? -- cgit v1.1