Re: [PATCH] Supplant the "while case ... break ;; esac" idiom
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 25, 2007, 10:33 UTC
- Message-ID
- <Pine.LNX.4.64.0709251132110.28395@racer.site>
- In-Reply-To
- <7v4phj6yxb.fsf@gitster.siamese.dyndns.org>
Hi,
On Mon, 24 Sep 2007, Junio C Hamano wrote:
Show 9 quoted lines
> David Kastrup <dak@gnu.org> writes: > > > As a completely irrelevant side note: the autoconf documentation > > mentions that "false" is more portable than "true" since calling it > > returns a non-zero exit status even when it is not installed or > > built-in. > > Ah, I like that ;-) It is obvious when you think about it, and it is so > true but in a very twisted way...
But would you not have to redirect stderr to /dev/null, then?
In the same vein, we could replace "true" by "! false".
That's such a good idea that I'll go and make a patch.
Ciao, Dscho