Yes, you are right. The GNU coreutils 8.21
expr on a Linux Mint live USB stick also does print out the result:
Code:
mint@mint ~ $ if expr 'zzz' \> 'aaa' ; then echo Greater ; fi
1
Greater
Probably forgot to escape the '>'
Code:
mint@mint ~ $ if expr 'zzz' > 'aaa' ; then echo Greater ; fi
Greater
mint@mint ~ $ ls -l aaa
-rw-r--r-- 1 mint mint 4 Jan 3 21:33 aaa