title: simple bash script with if else statement plus debugging issue
body: <p>I'm working on a simple bash script and no matter what the user inputs as <code>choice</code>, the result of the first condition is always printed.  Can someone explain what's going on here?  On side note, how do you go about debugging a bash script like this?  When I try debugging in ecplise using the shell script plugin, the only option is an "ant build" which, when I try it, does nothing arrgggh!</p>
  
  <pre><code>if [ -f $1 ]
  then
      echo "Are you sure you want to delete $1? Y for yes, N for no"
      read choice
      if [ $choice="Y" ]
      then
          echo "okay"
      else
          echo "file was not deleted"
      fi 
  fi
  </code></pre>