summaryrefslogtreecommitdiff
path: root/Test/B04read.ztst
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-12-13 20:12:06 +0900
committerOliver Kiddle <opk@zsh.org>2022-12-17 00:35:36 +0100
commit2701ab161df1f259b8292a650a4ea5cebd668d81 (patch)
tree1743525971d285a2fda9754e1c1c83949cc03804 /Test/B04read.ztst
parenta73c705b0c864a9ce042fca6e72e0c92d4ad8237 (diff)
downloadzsh-2701ab161df1f259b8292a650a4ea5cebd668d81.tar.gz
zsh-2701ab161df1f259b8292a650a4ea5cebd668d81.zip
51207: fix for read -d when the delimiter is a byte >= 0x80
Diffstat (limited to 'Test/B04read.ztst')
-rw-r--r--Test/B04read.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/B04read.ztst b/Test/B04read.ztst
index 25c3d4173..96adf51c7 100644
--- a/Test/B04read.ztst
+++ b/Test/B04read.ztst
@@ -82,6 +82,12 @@
>Testing the
>null hypothesis
+ print -n $'first line\x80second line\x80' |
+ while read -d $'\x80' line; do print $line; done
+0:read with a delimiter >= 0x80
+>first line
+>second line
+
# Note that trailing NULLs are not stripped even if they are in
# $IFS; only whitespace characters contained in $IFS are stripped.
print -n $'Aaargh, I hate nulls.\0\0\0' | read line