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.
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
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