Thanks for the feedback. I tried replacing == by = on Mac OS X and it still works fine, so I've put a patch on the repository. I guess the Mac OS X /bin/sh has an extension which allows == in addition to the (older?) = .
Indeed.
String equality [ "foo" = "foo" ] && echo ok
Number equality [ 1 -eq 1 ] && echo ok
I think there is no reason to have "==", especially as a alias of "=". Should I be an OSX dev, I'd demonstrate for the removal of this from the default shell. Default behaviors must be portable or must not be.</war->.
P!