View Single Post
  #7   (View Single Post)  
Old 3rd January 2016
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by J65nko View Post
With Linux expr works:
Code:
$ if expr 'zzz' \> 'aaa' ; then echo Greater ; fi
Greater
Hmm, what version of expr did you use? I tried three different Linux versions

expr (GNU coreutils) 8.19
expr (GNU coreutils) 8.21
expr (GNU coreutils) 8.4

They all print out the result
Code:
expr aaa \> zzz
0
The Gnu/Linux man page says they print out the result.
Reply With Quote