[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-30 01:58:03 CEST

On Tue, 2004-09-28 at 18:02, Ben Reser wrote:
> On Sat, Sep 18, 2004 at 11:41:21AM -0400, Greg Hudson wrote:
> > 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
>
> Yup sorry about that. I was thinking dist.sh was already bash specific.
> Guess it wasn't will fix.

You seem to have misunderstood a little; the [ ! $? ] syntax won't work
with or without bash. Try it:

  false; [ ! $? ] && echo foo
  true; [ ! $? ] && echo foo

(Either way, it's fine now, of course.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 30 01:58:26 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.