Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jun 2016 17:58:48 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: sh[it] and What am I missing here?
Message-ID:  <20160605175848.888968b00e11e7fefd84dc76@sohara.org>
In-Reply-To: <575453F9.9070508@holgerdanske.com>
References:  <31b2cfb1-1da8-9262-3f03-d964776c905e@columbus.rr.com> <575453F9.9070508@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Jun 2016 09:31:53 -0700
David Christensen <dpchrist@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@sohara.org>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160605175848.888968b00e11e7fefd84dc76>