Re: [PATCH] if ! is not portable
From: Zack Weinberg <zack_at_codesourcery.com>
Date: 2002-02-09 19:28:31 CET
On Sat, Feb 09, 2002 at 07:21:10PM +0100, Sander Striker wrote:
cmp -s produces no output, so this reduces to
if [ ! ]
which is a run-time syntax error.
The only other portable way to do this is
cmp -s ./ac-helpers/find_apr.m4 ./apr/build/find_apr.m4
I don't see what was wrong with
if cmp -s ./ac-helpers/find_apr.m4 ./apr/build/find_apr.m4
it's a common idiom.
zw
---------------------------------------------------------------------
|
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.