diff options
Diffstat (limited to 'Test/B04read.ztst')
-rw-r--r-- | Test/B04read.ztst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/B04read.ztst b/Test/B04read.ztst index 25c3d4173..14bdaeef5 100644 --- a/Test/B04read.ztst +++ b/Test/B04read.ztst @@ -82,6 +82,16 @@ >Testing the >null hypothesis + read -ed '' <<<$'one\0two' +0:empty delimiter terminates at nulls +>one + + 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 |