Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -g -march=i686 -pie -fpie uname output: Linux noname.nowhere.net 2.6.14-i865PERL-0.2 #1 SMP Fri Jan 27 18:40:14 CET 2006 i686 pentium4 i386 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.1
Patch Level: 11
Release Status: release

Description:
When IFS is "\n" a single n at the end of a line is dropped.
i.e. the following does not work (at least on my machine(s)):

while IFS="\n" read i; do echo $i; done
abc
abc
abcn            <----- input
abc             <----- output
abcnn
abcnn
abcnnn
abcnnn


Best regards

Mihai


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to