OT: environment variables, job control

Jonathan Chen jonc at chen.org.nz
Fri Apr 30 05:57:34 PDT 2004


On Thu, Apr 29, 2004 at 11:33:21PM -0500, Jamie wrote:
>    I'm using FreeBSD 4.9. Hopefully this is not too far off-topic.
> 
>    My login shell is set to /bin/csh. Why is it that when I:
> 
> % /bin/sh
> $ echo $SHELL
> 
>   I get:
> $ /bin/csh

Because $SHELL is set by the login process and not the shell. /bin/sh
doesn't invoke any special processing when it is invoked
(/usr/local/bin/bash on the other does quite a bit). Try it out on
other UNIXes, and the behaviour is the same.
-- 
Jonathan Chen <jonc at chen.org.nz>
----------------------------------------------------------------------
                   "Lots of folks confuse bad management with destiny"
                                                         - Kin Hubbard


More information about the freebsd-questions mailing list