Subject: Re: born shell (sh) and IFS
To: Jukka Salmi <jukka-netbsd@2003.salmi.ch>
From: Robert Elz <kre@munnari.OZ.AU>
List: netbsd-users
Date: 11/04/2003 02:33:37
Date: Mon, 3 Nov 2003 19:27:26 +0100
From: Jukka Salmi <jukka-netbsd@2003.salmi.ch>
Message-ID: <20031103182726.GA285@haustier.salmi.ch>
| Try IFS=`echo;echo`. And don't ask why ;-)
Come on people, suggest the correct way, there's no need to run
commands (even built-in commands) to produce a constant string.
Just
IFS='
'
is all that is needed. (Note those are apostrophes, not back-ticks,
and there's nothing at all, not even a space, after the ' on the first
line).
kre
ps: it is the Bourne shell (or a close facsimile thereto).