aboutsummaryrefslogtreecommitdiffstats
path: root/tests/read3.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/read3.sub')
-rw-r--r--tests/read3.sub5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/read3.sub b/tests/read3.sub
index 22088cb..af41e3f 100644
--- a/tests/read3.sub
+++ b/tests/read3.sub
@@ -15,5 +15,10 @@ echo ab | {
echo $xyz
}
+echo abc | {
+ read -N 4 -d$'\n' foo
+ echo $foo
+}
+
read -n 1 < $0
echo "$REPLY"