Re: 'read' primitive

2008-08-22 Thread Dave B
Bob Proulx wrote: > To get the entire line verbatim you would need to use the $REPLY > variable. Or also use IFS= read -r foo < bar -- D.

Re: 'read' primitive

2008-08-21 Thread Bob Proulx
David Lütolf wrote: > 'read' does not properly set variable when line ends with a > character > > Repeat-By: > ~$ echo "foo " > bar > ~$ read foo < bar > ~$ echo "-$foo-" > -foo- > > the output should of course be: -foo - This question was discussed recen

'read' primitive

2008-08-21 Thread David Lütolf
From: dlutolf To: bug-bash@gnu.org,[EMAIL PROTECTED] Subject: [50 character or so descriptive subject here (for reference)] Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DC