[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bash Question



Hi,

 

can anybody help to explain what is going on here ?

 

 

rd@mohot:~$ echo $SHELL
/bin/bash
rd@mohot:~$ if [ "abc" > "dec" ]; then echo bad; fi       
bad
rd@mohot:~$ if [ "abc" < "dec" ]; then echo good; fi
good
rd@mohot:~$

How can abc sort before and after dec at the same time?

 

Thanks

Rainer

 

 

--

Rainer Dorsch

http://bokomoko.de/


Reply to: