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

RE: problem with xml tests

From: Sander Striker <striker_at_apache.org>
Date: 2002-01-21 21:04:20 CET

> From: Greg Stein [mailto:gstein@lyra.org]
> Sent: 21 January 2002 21:01
> To: Garrett Rooney
> Cc: dev@subversion.tigris.org
> Subject: Re: problem with xml tests
>
>
> On Mon, Jan 21, 2002 at 02:29:28PM -0500, Garrett Rooney wrote:
> > since the changes to support builddir != srcdir in the tests,
> > svn-test.sh and svn-test2.sh have been giving me errors. they still
> > succeeded, but the shell scripts weren't entirely correct.
> >
> > i just got a chance to look closer, and it turns out they are passing
> > the '==' operator to [, which is not a valid operator on FreeBSD. to
> > be portable, we should be using =, not ==.
> >
> > here's a patch.
>
> +1
>
> Although, I seem to recall that the most portable form is:
>
> if test "$foo" = "bar"; then
>
>
> The [ ] implies test, but it seems like I heard that some shells don't
> understand the brackets. Dunno that you need to worry about that; we've got
> a number of other problems if that is the case... :-)

In that case, consider us having problems and file an issue.
We need to use 'test' for portability, since that is known to
always work.
 
> Cheers,
> -g

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:36:57 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.