[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] if ! is not portable

From: Zack Weinberg <zack_at_codesourcery.com>
Date: 2002-02-10 19:26:27 CET

On Sat, Feb 09, 2002 at 06:32:17PM -0500, Greg Hudson wrote:
>
> Well... there is one other way:
>
> cmp -s ./ac-helpers/find_apr.m4 ./apr/build/find_apr.m4 || {
> ...
> }
>
> but while it is more elegant, it is less clear (to my mind, anyway). So
> the if-with-empty-then-branch is probably better.

I always forget that you can put a brace block after ||. I believe
there are some problems with that, though (unreliable behavior if you
put control structures inside the braces? Again, don't clearly
remember.)

zw

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:06 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.