You need to quote the operators to distinguish them from redirections. It may be appropriate to mention this in the man page.
For example: $ [ 2.6 "<" 2.7 ]; echo $? 0 $ [ 2.6 ">" 2.7 ]; echo $? 1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/718396 Title: strings not comparable with "<" or ">" as described in man page -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs