Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!bfmny0!tneff From: tneff@bfmny0.UUCP (Tom Neff) Newsgroups: comp.sys.att,comp.unix.i386 Subject: Forcing /bin/sh in a script under V/386 3.2 Korn shell Summary: can anyone make it work? I can't Message-ID: <14445@bfmny0.UUCP> Date: 7 Jul 89 22:08:29 GMT Reply-To: bfmny0!tneff@uunet.UU.NET (Tom Neff) Followup-To: comp.sys.att Distribution: na Organization: ^ Lines: 26 Expires: Sender: Followup-To: Keywords: I use Korn shell and am happy with it, but I want certain shell scripts to be intepreted by the Bourne shell instead. There is already a mechanism by which CSH(1) figures out to spawn /bin/sh on a script rather than interpreting itself, namely putting a colon ':' as the first line. % cat > xxx : ps ^D % chmod a+x xxx % xxx PID TTY TIME COMMAND 27632 console 0:00 csh 27640 console 0:00 sh 27641 console 0:00 ps What I want to know is, is there any way to do this under K-shell? The colon certainly doesn't work, and neither does #! /bin/ksh or anything else I've tried. Sure would be nice. -- "My God, Thiokol, when do you \\ Tom Neff want me to launch -- next April?" \\ uunet!bfmny0!tneff