title: commands work in linux terminal but not in shell script
body: <p>I am trying to run the following shell script using the command:</p>
  
  <pre><code>$ bash linuxScript.sh
  </code></pre>
  
  <p>This is what my script looks like</p>
  
  <pre><code>#!/bin/bash
  svnroot=.../resources
  FINDBUGS_HOME="~/opt/findbugs-2.0.1"
  svn help
  svn export --force ".../resources/GUI.jar"
  
  opt=$1 
  case $opt in
       -normal)
      echo "normal mode"
      java -jar %FINDBUGS_HOME%\lib\findbugs.jar -textui -onlyAnalyze common.-,ufm.- -output UFMGUI_Normal.html -html GUI.jar;;
      ...
  esac
  </code></pre>
  
  <p>Now for some reason the command <code>svn help</code> and <code>svn export</code> don't work well (I am calling svn help only to emphasize my point).</p>
  
  <p>They let out the following errors:</p>
  
  <pre><code>'unknown command: 'help
  Type 'svn help' for usage.
  ' is not properly URI-encodedaire.com/repos/ufm_ui/branches/UFM_3_7/tools/build/resources/GUI.jar
  </code></pre>
  
  <p>And if I'm already asking it also shouts on non svn related commands:</p>
  
  <pre><code>:command not founde 7:
  'inuxScript.sh: line 8: syntax error near unexpected token 'in
  'inuxScript.sh: line 8: 'case $opt in
  </code></pre>
  
  <p>Now the weird thing is that if I type the svn commands in the terminal everything works fine! I tried to google the solution and I also searched this forum but I couldn't find anything useful.</p>
  
  <p>Help ill be greatly appreciated. Thankyou!</p>