make importing SHELL
The Beach Bum
jfh at rpp386.Dallas.TX.US
Sat Oct 1 08:56:33 AEST 1988
In article <4147 at bsu-cs.UUCP> dhesi at bsu-cs.UUCP (Rahul Dhesi) writes:
>In article <13753 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>>More generally, the problem is that the environment variable $SHELL has
>>the meaning `user's preferred shell'...
>
>I think the problem is that $SHELL exists at all. It's a poor
>substitute for the #! in 4.3BSD.
$SHELL has more uses than running shell scripts, and does not in fact
replace the #! mechanism.
$SHELL is useful for programs which support escapes to the user's shell
and shell commands from within the program. in those situations the user
should get the desired shell and #! would not have added in doing the
right thing.
#! is used to select the correct shell interpreter for a given shell
script. in this case $SHELL may [ and probably will since murphy's
law dictates it is so ] be different than the shell interpreter which
is being used.
the two have nothing to do with each other.
--
John F. Haugh II (jfh at rpp386.Dallas.TX.US) HASA, "S" Division
"Why waste negative entropy on comments, when you could use the same
entropy to create bugs instead?" -- Steve Elias
More information about the Comp.unix.wizards
mailing list