summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-read/read_n.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-read/read_n.tests')
-rwxr-xr-xshell/hush_test/hush-read/read_n.tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/hush_test/hush-read/read_n.tests b/shell/hush_test/hush-read/read_n.tests
new file mode 100755
index 0000000..12423ba
--- /dev/null
+++ b/shell/hush_test/hush-read/read_n.tests
@@ -0,0 +1,3 @@
+echo 'test' | (read reply; echo "$reply")
+echo 'test' | (read -n 3 reply; echo "$reply")
+echo 'test' | (read -n3 reply; echo "$reply")