This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Newbie: read works incorrectly
- To: cygwin at cygwin dot com
- Subject: Newbie: read works incorrectly
- From: schwarza at gdls dot com
- Date: Wed, 22 Nov 2000 09:53:21 -0500
The following statement:
echo one two | while read line ; do
printf '%s\r\n' $line
done
generates
one
two
I would have expected
one two
from (e.g.)
Linux in a Nutshell
Second Edition, Feb. 1999
O'Reilly
pg 191
and from previous experience.
Am I looking at the problem correctly? I assume that
"If only one variable is specified, the entire line
will be assigned to that variable." from the previous
reference.
art
schwarza@gdls.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com