csh misconceptions

edhall%rand-unix at sri-unix.UUCP edhall%rand-unix at sri-unix.UUCP
Mon Feb 27 07:00:00 AEST 1984


From:  Ed_Hall <edhall at rand-unix>

One point that Doug hinted at but didn't comment on explicitly:  All
other things being equal, it is more efficient to use the `#!' construct.

One minor clarification: the `#!' passes the file name to the shell
specified as an argument, not as the standard input.  One argument
is allowed to preceed this, and is whitespace-separated from the shell
path.  Thus:

		#! /bin/csh -f

will, if at the top of `/bin/frebus', cause the command `frebus' to
behave as if:

		/bin/csh -f /bin/frebus

was the actual command.

		-Ed Hall
		edhall at rand-unix        (ARPA)
		decvax!randvax!edhall   (UUCP)



More information about the Comp.unix mailing list