Subject: Re: strange IFS behaviour in /bin/sh ?
To: Geoff Wing <gcw@pobox.com>
From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
List: current-users
Date: 05/11/2004 09:29:14
> On Someday at Sometime, Masao wrote:
> >SUSv3 says Field Splitting happens after a) parameter expansion, b)
> >command substition, and c) arithmetic expansion.

On Tue, May 11, 2004 at 09:17:46AM -0500, Eric Haszlakiewicz wrote:
> > :# IFS=:
> > :# set 'root:foo:bar:bax'
> > :# echo $1
> > :root foo bar bax
> 	What I'm still not clear on is why the : characters dissappear if
> field splitting doesn't occur.
	oh, I get it.  There's no field splitting when the set command is
called.  There IS field splitting when echo is called, since we expanding
a parameter (the $1), so echo gets 4 parameters:
"root", "foo", "bar" and "bax".

eric