[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: Blair Zajac <blair_at_orcaware.com>
Date: 2002-02-09 18:42:20 CET

Sander Striker wrote:
> I would suggest:
>
> if [ ! cmp -s ./ac-helpers/find_apr.m4 ./apr/build/find_apr.m4 ]; then
>
> instead.

Except this passes cmp -s .... to test, which doesn't execute cmp.

On Solaris, this script

        #!/bin/sh

        if [ ! false ]; then
          echo 1 True
        fi

        if false; then
          :
        else
          echo 2 True
        fi

only prints "2 True".

Best,
Blair

---------------------------------------------------------------------
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.