sh[it] and What am I missing here?
Steve O'Hara-Smith
steve at sohara.org
Sun Jun 5 16:59:12 UTC 2016
On Sun, 5 Jun 2016 09:31:53 -0700
David Christensen <dpchrist at holgerdanske.com> wrote:
> > Why is the SHELL variable still set to /bin/csh
> ...
>
> Because you are invoking a program (/bin/sh) and that program did not
> modify the SHELL environment variable.
This is the correct explanation, nothing automatically changes
$SHELL when you execute a program - even if that program is a shell, the
variable isn't intended to tell you what you're running just what your
default shell is.
--
Steve O'Hara-Smith <steve at sohara.org>
More information about the freebsd-questions
mailing list