aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-25 19:01:49 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-25 19:01:49 +0100
commit1237d627e9fd996cc3d96ba72629371739fef776 (patch)
treea287c1c117d5490be91fcd31f8e9643e5f2b1859 /shell/ash_test/ash-misc
parent46a71dc30c62dde71d4e6714790b40187d378e82 (diff)
downloadbusybox-1237d627e9fd996cc3d96ba72629371739fef776.tar.gz
hush: fix this case: echo "SCRIPT" | hush
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-misc')
-rw-r--r--shell/ash_test/ash-misc/piped_input.right2
-rwxr-xr-xshell/ash_test/ash-misc/piped_input.tests3
2 files changed, 5 insertions, 0 deletions
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 000000000..7b8bf6758
--- /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 000000000..ec7e49837
--- /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:$?