mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-07 15:56:04 +02:00
Test for fix of read with trailing metacharacters
This commit is contained in:
parent
b72a946185
commit
ce49d62d45
|
@ -1,7 +1,10 @@
|
|||
2005-04-25 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/8752: stripping IFS characters after reading a line
|
||||
in the read builtin wasn't sensitive to metafied characters.
|
||||
* 21184: Test/B04read.ztst: test for foregoing fix.
|
||||
|
||||
* users/8752: Src/builtin.c: stripping IFS characters after
|
||||
reading a line in the read builtin wasn't sensitive to metafied
|
||||
characters.
|
||||
|
||||
2005-04-24 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
|
|
|
@ -69,3 +69,10 @@
|
|||
0:read with null delimiter
|
||||
>Testing the
|
||||
>null hypothesis
|
||||
|
||||
# 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
|
||||
print ${#line}
|
||||
0:read with trailing metafied characters
|
||||
>24
|
||||
|
|
Loading…
Reference in New Issue