Because it’s Bash

in code


[mark][~] # a=3
[mark][~] # b=525
[mark][~] # if [ $a > $b ]; then echo "fail"; fi
fail
[mark][~] # 

Yes, I know about the correct operators to use. This, however, is a pretty good example of pitfalls that await newbies.



March 20

in me


Your email address will not be published. Required fields are marked *