title: bash user input if
body: <p>I am tring to do simple</p>
  
  <pre><code>Do you want to do that? [Y,n] _
  </code></pre>
  
  <p>question in bash.</p>
  
  <p>i tried</p>
  
  <pre><code>echo "Do that? [Y,n]"
  read DO_THAT
  if ["DO_THAT"="y"]; then
    do_that
  fi
  </code></pre>
  
  <p>but it fails: <code>bash: [y=y]: command not found</code></p>
  
  <p>what am I doing wrong??!</p>