Hashbang has been supported since MKS Toolkit 5.2 however, it is not always enabled. You have to set the environment variable HASHBANG to a non zero value to enable this feature.
KornShell and Bash example: (line added to $HOME/profile.ksh )
C Shell example: (line added to $HOME/cshrc.csh )
Note: In the KornShell that came with Toolkit 6.1 (build 209) hashbang lines were ignored in files without a .ksh extension. Newer releases of the KornShell fix this. Check the download area of the Toolkit support site to get the latest shell update or Toolkit release. |