On Fri, 29 Apr 2011 11:17 -0400, "erik quanstrom"
<quans...@labs.coraid.com> wrote:
> > I always change it back immediately; a nuisance in for() as it has to
> > be set before and re-set inside.  I'm considering whether a new shell
> > builtin would be desirable, similar to ` but always splitting on
> > newlines and only newlines, regardless of $ifs.
> 
> this is one thing that byron understood in his version of rc.
> he had
>       x=``ifs {cmd}
> the `` was required since `singleton was allowed in his version.
> i think that one could just extend the grammar to allow
>       x=`ifs {cmd}
> and i think it would be even better if it were
>       x=`splitchars {cmd}
> so ifs is never set.

I don't quite understand the first two examples. Do they set ifs only
within the {} ? I guess that risks breaking any scripts you might want
to run as cmd, so yeah, the 3rd looks good.

Reply via email to