Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-4.2$ t=something
- bash-4.2$ [ $t=="hi" ] ; echo $?
- 0
- bash-4.2$ [ $t == "hi" ] ; echo $?
- 1
- bash-4.2$ [ "foo"=="bar" ] ; echo $?
- 0
- bash-4.2$ [ "foo" == "bar" ] ; echo $?
- 1
- bash-4.2$ (($t=="hi")) ; echo $?
- 0
- bash-4.2$ (("foo"=="bar")) ; echo $?
- 0
- bash-4.2$ ((3==4)) ; echo $?
- 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement