about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-04-25 10:41:25 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-04-25 10:41:25 +0000
commitce49d62d45278b2fe559b180ba6ef870215b2037 (patch)
treed5b0ee4ef352b778648544d39b0327d5620fd95d
parentb72a9461856ab0566bd129dab4cf32e8d1dfaf91 (diff)
downloadzsh-ce49d62d45278b2fe559b180ba6ef870215b2037.tar.gz
zsh-ce49d62d45278b2fe559b180ba6ef870215b2037.tar.xz
zsh-ce49d62d45278b2fe559b180ba6ef870215b2037.zip
Test for fix of read with trailing metacharacters
-rw-r--r--ChangeLog7
-rw-r--r--Test/B04read.ztst7
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 751ea5369..2b63a50ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
diff --git a/Test/B04read.ztst b/Test/B04read.ztst
index 5efbf24ca..d6b7ce0b1 100644
--- a/Test/B04read.ztst
+++ b/Test/B04read.ztst
@@ -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