On Thu, 7 Jun 2007 11:47:17 -0400 [EMAIL PROTECTED] (Charles Seeger) wrote:
> The other classic problem is that the variable may begin with a "-",
> which test will attempt to interpret as a command line switch. That
> can be addressed either by putting the variable expansion on the right
> side of the "=" or by preceeding both sides by identical strings, e.g.
> [ x$install = xyes ] && ...
or use the ksh93 [[ ... ]]
[[ $install == yes ]] && ...
-- Glenn Fowler -- AT&T Research, Florham Park NJ --
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code