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 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