On Thu, Feb 03, 2005 at 08:21:18PM -0800, Christopher Buckley wrote:
> Package: bash
> Version: 2.05a-11
> 
> --- #1 -------------------
> 
> The first matter has to do with the distinction between the functions of "="
> and "==". There is abiguity in the way bash parses two different
> applications of the operators.

[...]
> Why hasn't this been addressed, and if so, what is the reasoning to retain
> it?
That's the way sh worked in 1971; I anticipate that lots of programs
and programmers would fail horribly if it were changed.

As for string test, I always use [[ which I understand is a bash
extension.  You can check for null-ness (and unset ness) with:

  if [[ $foo == "" ]];

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to