On Thu, Dec 14, 2000 at 07:37:47AM -0800, David Alban wrote:
> Of course, this would be O.K.  I prefer the [[ ]] operator (found in
> ksh and bash 2.x) because it is smarter and more resistant to syntax
> errors that occur with [  ] if a variable is undefined.  But
> certainly one can use [  ] and then double quote the variables
> within, as you have done.

AFAIK, it also doesn't fork a process as well, using [[ ]] the tests
are done internally to bash/ksh, and are thus much faster.

-- 
Josh Huber                                     | [EMAIL PROTECTED] |
1024D/6B21489A 61F0 6138 BE7B FEBF A223  E9D1 BFE1 2065 6B21 489A

PGP signature

Reply via email to