In the section SHELL GRAMMAR, Expansion, there is the following statement:
"
== !=   Equal (the result is 1 if both arguments are equal, and 0
             otherwise) and not equal (the result is 1 if both arguments are
             non-zero, and 0 otherwise), respectively.
"
The information in the parenthesis about != is incorrect.
Doing the following:
echo $((2!=2))
gives the answer
0
This is despite 2 and 2 both being non-zero.
Fixing it to "if both arguments are not equal" would be awesome.

Reply via email to