[gambit-list] Help system
Adrien Piérard
pierarda at iro.umontreal.ca
Thu Feb 12 21:32:15 EST 2009
>
> 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!
--
Français, English, 日本語, 한국어
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090213/71af5916/attachment.htm>
More information about the Gambit-list
mailing list