From ce49d62d45278b2fe559b180ba6ef870215b2037 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 25 Apr 2005 10:41:25 +0000 Subject: Test for fix of read with trailing metacharacters --- Test/B04read.ztst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1