zsh-workers
 help / color / mirror / code / Atom feed
* Re: while read; problems
       [not found] ` <200504251014.j3PAEoF5010900@news01.csr.com>
@ 2005-04-25 10:34   ` Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2005-04-25 10:34 UTC (permalink / raw)
  To: Zsh hackers list

Here's a test.

Index: Test/B04read.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/B04read.ztst,v
retrieving revision 1.2
diff -u -r1.2 B04read.ztst
--- Test/B04read.ztst	9 Jul 2003 11:04:03 -0000	1.2
+++ Test/B04read.ztst	25 Apr 2005 10:33:38 -0000
@@ -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

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-25 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20050422122206.GA11327@globtel.pl>
     [not found] ` <200504251014.j3PAEoF5010900@news01.csr.com>
2005-04-25 10:34   ` while read; problems Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).