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

Re: svn commit: r11027 - trunk

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-09-18 17:41:21 CEST

On Fri, 2004-09-17 at 17:08, breser@tigris.org wrote:
> +type pax &> /dev/null
> +if [ ! $? ] && [ -z "$ZIP" ]; then

This redirection syntax is bash-specific and the [ ! $? ] test simply
won't work, since "test" is not like C.

  type pax > /dev/null 2>&1
  if [ $? -ne 0 ] && [ -z "$ZIP" ]; then

I would suggest the somewhat cooler:

  if [ -z "$ZIP" ] && ! type pax > /dev/null 2>&1; then

but it won't work with deficient /bin/sh implementations like Solaris's,
although it should work with any POSIX shell (such as the
/usr/xpg4/bin/sh on Solaris).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 18 17:41:38 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.