bug-bash
[Top][All Lists]
Advanced

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

bash-3.1.011 escaped character error


From: Mihai Barbos
Subject: bash-3.1.011 escaped character error
Date: Mon, 06 Mar 2006 19:51:54 -0000
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

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




reply via email to

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