bug-bash
[Top][All Lists]
Advanced

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

Re: (no subject)


From: Paul Jarc
Subject: Re: (no subject)
Date: Thu, 06 Sep 2001 12:14:09 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

Richard Truitt Pickler <rtp9709@ksu.edu> wrote:
> Any way I try and set IFS to a <newline> it crashes bash.
...
> IFS='\n'

This shouldn't work.  (But it also shouln't crash bash.)  This should
work:
IFS='
'
or this, if your bash is new enough:
IFS=$'\n'
But maybe you want this instead:
while read line; do
  echo "$line"
done < file


paul



reply via email to

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