[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'read' primitive

From: David Lütolf
Subject: 'read' primitive
Date: Wed, 20 Aug 2008 15:09:10 +0200

From: dlutolf
To: address@hidden,address@hidden
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'
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

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

        ~$ echo "foo " > bar
        ~$ read foo < bar
        ~$ echo "-$foo-"

        the output should of course be: -foo -

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]