[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: Sander Striker <striker_at_apache.org>
Date: 2002-02-09 19:21:10 CET

> From: Blair Zajac [mailto:blair@orcaware.com]
> Sent: 09 February 2002 18:42

> Sander Striker wrote:
> > I would suggest:
> >
> >
> >
> > instead.
>
> Except this passes cmp -s .... to test, which doesn't execute cmp.

/me asking stupid questions...

What about:

  if [ ! `cmp -s ./ac-helpers/find_apr.m4 ./apr/build/find_apr.m4` ]; then
 
> 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".

The joy of portable shell scripts...
 
> Best,
> Blair

Sander

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