-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Overdorf, Sam on 5/13/2007 1:31 AM: > The following does not work on my computers: > > > > If [ "1" > "2" ] > > then
Your mailer corrupted what you typed, by adding spurious newlines, and capitalizing the if. Your report is not a bug in bash, but in your usage. Either quote things properly when invoking the POSIX-specified [: if [ 1 \> 2 ] or use the bash builtin [[ which does the implicit quoting for you: if [[ 1 > 2 ]] > This should be a string compare. Actually, when quoted properly, it should be a numeric comparison, not a string comparison. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGRx5h84KuGfSFAYARAh8QAJ9Tk+sooDVvmKFaTH/3iu49YHpcQACgqaMl 1pLMZvNB3NF+s1P8QDEp2ek= =rDZY -----END PGP SIGNATURE----- _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash