bug-bash
[Top][All Lists]
Advanced

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

Bash is broken


From: Overdorf, Sam
Subject: Bash is broken
Date: Sun, 13 May 2007 00:31:48 -0700

The following does not work on my computers:

 

If [ "1" > "2" ]

  then

    echo "greater"

  else

    echo "not greater"

fi

 

Bash thinks this is I/O redirection and creates a file by the name of
"2" in my directory.

This should be a string compare.

 

Thanks,

Sam

 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]