From owner-freebsd-questions@freebsd.org Sun Jun 5 16:31:50 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6AC83B6A8E5 for ; Sun, 5 Jun 2016 16:31:50 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) by mx1.freebsd.org (Postfix) with SMTP id 40F0C12C6 for ; Sun, 5 Jun 2016 16:31:50 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com for ; Sun, 5 Jun 2016 09:31:42 -0700 Subject: Re: sh[it] and What am I missing here? To: freebsd-questions@freebsd.org References: <31b2cfb1-1da8-9262-3f03-d964776c905e@columbus.rr.com> From: David Christensen Message-ID: <575453F9.9070508@holgerdanske.com> Date: Sun, 5 Jun 2016 09:31:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 MIME-Version: 1.0 In-Reply-To: <31b2cfb1-1da8-9262-3f03-d964776c905e@columbus.rr.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2016 16:31:50 -0000 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 +1 Take a look at: https://www.freebsd.org/doc/en/articles/linux-users/shells.html David