Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jun 2016 09:31:53 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: sh[it] and What am I missing here?
Message-ID:  <575453F9.9070508@holgerdanske.com>
In-Reply-To: <31b2cfb1-1da8-9262-3f03-d964776c905e@columbus.rr.com>
References:  <31b2cfb1-1da8-9262-3f03-d964776c905e@columbus.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/05/2016 08:38 AM, Baho Utot wrote:
...
> root@baho-utot:~ # set
...
> shell   /bin/csh
...
> tcsh    6.18.01
...
> OK tcsh as I thought
...
> OK switch shells
>
> root@baho-utot:~ # /bin/sh
> # set
...
> 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.


On 06/05/2016 09:15 AM, jd1008 wrote:
 > Do I understand correctly that you want bash to be your shell?
 > If so, you can run (as root), the command
 > chsh <username>

+1

Take a look at:

     https://www.freebsd.org/doc/en/articles/linux-users/shells.html


David




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