[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: Zack Weinberg <zack_at_codesourcery.com>
Date: 2002-01-21 21:17:40 CET

On Mon, Jan 21, 2002 at 12:00:51PM -0800, Greg Stein wrote:
> 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.

The only problem with [ ] I'm aware of is that you can't use it inside
an autoconf script because M4 has laid claim to the brackets. In a
plain shell script, it should be perfectly safe.

zw

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