title: Exec format error. Binary file not executable
body: <p>I'm under </p>
  
  <pre><code>Linux version 3.3.4-5.fc17.x86_64 (mockbuild@x86-14.phx2.fedoraproject.org) (gcc version 4.7.0 20120504 (Red Hat 4.7.0-4) (GCC) ) #1 SMP Mon May 7 17:29:34 UTC 2012
  </code></pre>
  
  <p>trying to run a basic executable script.ksh file with permission 775 and containing:</p>
  
  <pre><code>#!/bin/ksh
  echo "hello ya"
  </code></pre>
  
  <p>but I have: </p>
  
  <pre><code>$./script.ksh
   ./script.ksh: Exec format error. Binary file not executable.
  </code></pre>
  
  <p>the problem looks like to come from the shebang but I can't figure out why and how. 
  I can run the script by doing this (note the weird output for the first line):</p>
  
  <pre><code>$ ksh script.ksh
  script.ksh[1]: ?o?;??#!/bin/ksh: not found [No such file or directory]
  hello ya
  </code></pre>
  
  <p>some (maybe) useful output:</p>
  
  <pre><code>$ file script.ksh
  script.ksh: Korn shell script, UTF-8 Unicode (with BOM) text executable
  $ which ksh
  /bin/ksh
  </code></pre>
  
  <p>do you have an idea?</p>