autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: carriage return line endings vs. literal ^M in status.m4


From: Ralf Wildenhues
Subject: Re: carriage return line endings vs. literal ^M in status.m4
Date: Sat, 5 Apr 2008 15:13:00 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* Jim Meyering wrote on Sat, Apr 05, 2008 at 03:08:24PM CEST:
> Ralf Wildenhues <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]