title: Unable to execute shell script in Cygwin as a KornShell script
body: <p>I rarely touch shell scripts, we have another department who write them, so I have an understanding of writing them but no experience. However they all appear rather useless with my issue.</p>
  
  <p>I am trying to execute some KornShell (ksh) scripts on a windows based machine using Cygwin- we use these to launch our Oracle WebLogic servers, now it simply will not execute. I used to be able to execute these exact same scripts fine on my old machine.</p>
  
  <p>Now I have narrowed this down to the fact the 'magic number' or whatever it is at the start of the script where it specifies the script interpreter path: </p>
  
  <p>i.e.:</p>
  
  <p><code>#!/bin/ksh</code></p>
  
  <p>if I change it to execute as a simple bash it works i.e:</p>
  
  <p><code>#!/bin/sh</code></p>
  
  <p>I went through checking the packages installed for cygwin - now the shells I installed are:</p>
  
  <ul>
  <li>mksh MirdBSD KornShell</li>
  <li>bash the bourne again shell</li>
  <li>zsh z shell</li>
  </ul>
  
  <p>Should I expect to see a ksh.exe in my cygwin/bin directory? there is a system file 'ksh' which I was making an assume somehow associates it with one of the other shell exes, like mksh.exe</p>
  
  <p>I understand my explanation may well be naff. But that being said, any help would be very much appreciated.</p>
  
  <p>Thanks.</p>