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

Re: svn commit: r10868 - trunk/build/ac-macros

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-10-01 16:36:05 CEST

Ben Reser wrote:
> On Fri, Sep 10, 2004 at 01:14:20PM -0400, Greg Hudson wrote:
>>On Thu, 2004-09-09 at 20:49, breser@tigris.org wrote:
>>>+ if [ test -f "$where" ]; then
>>>+ if [ test ! -f "$SWIG" ] || [ test ! -x "$SWIG" ]; then
>>Also, the second statement is weird, firstly because it uses two test
>>processes instead of -o,
>> and secondly because the second test seems to
>>subsume the first one (that is, just 'test ! -x "$SWIG"' would seem to
>>do the job).
> Look again. The first test is to see if the $where is a file, the
> second test is to see if $SWIG is a file.

Greg was talking about the second and first tests within the second line: "($SWIG is not a file) or ($SWIG is not an executable file)" can be simplified to "$SWIG is not an executable file". Note that "test -x" does have that particular meaning; it won't match a directory.

- Julian

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 1 16:37:32 2004

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.