title: ": No such file or directory" when file exists
body: <p>I'm having some problems with some code, it's saying that a file does not exist, when I know that it does. The code is as follows:</p>
  
  <pre class="lang-sh prettyprint-override"><code>#! /bin/ksh
  echo "Enter a file name"
  read fileName
  if [ -e $fileName ];then
      less -M $fileName
      gedit $fileName
  else
      echo "$fileName is not a file"
  fi
  </code></pre>
  
  <p>I've almost certainly missed something blindingly obvious... I just wish I knew what it was. Anyway, any help would be greatly appreciated.</p>