SHARE
TWEET

Untitled

a guest Apr 22nd, 2014 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-4.3$ foo='one two'
  2.  
  3. bash-4.3$ bar='one two'
  4.  
  5. bash-4.3$ [[ $foo = $bar ]] && echo EQ
  6. EQ
  7.  
  8. bash-4.3$ [ $foo = $bar ] && echo EQ
  9. bash: [: too many arguments
  10.  
  11. bash-4.3$ [ "$foo" = "$bar" ] && echo EQ
  12. EQ
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top