* Jim Meyering wrote on Sat, Apr 05, 2008 at 03:08:24PM CEST:
> Ralf Wildenhues <[EMAIL PROTECTED]> wrote:
> >>
> >> I prefer yours and almost went that way myself, but wonder if it's
> >> portable enough.  I don't see any other uses of 'if...fi <', in autoconf.
> >
> > Yes, that's pretty portable.  IIRC it may create a subshell, but that
> > doesn't matter here.
> 
> "pretty portable" may not be enough for autoconf ;-)

It's very portable.  Really.

> Since there seem to be no other uses of that idiom
> in autoconf, I'm leery about introducing the first.

We use
  for var in $list; do
    $cmds
  done | $cmd

a lot in autotools, and it's just the same thing.

You can blame me if we hit a bug here.

Cheers,
Ralf


Reply via email to