diff options
| author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-12-13 20:12:06 +0900 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2022-12-17 00:35:36 +0100 |
| commit | 2701ab161df1f259b8292a650a4ea5cebd668d81 (patch) | |
| tree | 1743525971d285a2fda9754e1c1c83949cc03804 /Test | |
| parent | 51212: remove STOUC() macro (diff) | |
| download | zsh-2701ab161df1f259b8292a650a4ea5cebd668d81.tar zsh-2701ab161df1f259b8292a650a4ea5cebd668d81.tar.gz zsh-2701ab161df1f259b8292a650a4ea5cebd668d81.tar.bz2 zsh-2701ab161df1f259b8292a650a4ea5cebd668d81.tar.lz zsh-2701ab161df1f259b8292a650a4ea5cebd668d81.tar.xz zsh-2701ab161df1f259b8292a650a4ea5cebd668d81.tar.zst zsh-2701ab161df1f259b8292a650a4ea5cebd668d81.zip | |
51207: fix for read -d when the delimiter is a byte >= 0x80
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/B04read.ztst | 6 |
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 |
