On Fri, Jun 13, 2008 at 01:05:06PM -0400, James Carlson wrote:
> Nicolas Williams writes:
> > % print ${.sh.version}
> > Version M 1993-12-28 s+
> > % function d {
> >     typeset OIFS=$IFS
> >     typeset IFS='|'
> >     read line
> >     set -- $line
> 
> Oops!  You just told it to break up the arguments twice.

Er, actually, I didn't.  The first read doesn't break up the arguments
because it has a single variable named to it.

The set ought to split up the line read in.

Adding -r to the read invocation changes nothing.

So maybe this is a shell bug, or maybe just a feature of read that the
shell normally doesn't provide when breaking up arguments.

Nico
-- 

Reply via email to