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'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr$
uname output: Linux dlutolf 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42
UTC 2008 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.2
Patch Level: 39
Release Status: release

Description:
        'read' does not properly set variable when line ends with a
<space> character

Repeat-By:
        ~$ echo "foo " > bar
        ~$ read foo < bar
        ~$ echo "-$foo-"
        -foo-

        the output should of course be: -foo -

Fix:
        include end-of-line spaces in variables when reading a file



Reply via email to