Forcing /bin/sh in a script under V/386 3.2 Korn shell

Tom Neff tneff at bfmny0.UUCP
Sat Jul 8 08:08:29 AEST 1989


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



More information about the Comp.sys.att mailing list