- bash-4.3$ foo='one two'
- bash-4.3$ bar='one two'
- bash-4.3$ [[ $foo = $bar ]] && echo EQ
- bash-4.3$ [ $foo = $bar ] && echo EQ
- bash: [: too many arguments
- bash-4.3$ [ "$foo" = "$bar" ] && echo EQ
a guest Apr 22nd, 2014 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data