From owner-freebsd-questions@freebsd.org Sun Jun 5 16:59:11 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 EAD11B694D4 for ; Sun, 5 Jun 2016 16:59:11 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1mail2513.mymailbank.co.uk (UK1MAIL2513-PERMANET.IE.mymailbank.co.uk [217.69.47.44]) by mx1.freebsd.org (Postfix) with ESMTP id 52FAB1A55 for ; Sun, 5 Jun 2016 16:59:10 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp.lan.sohara.org (UnknownHost [88.151.27.41]) by uk1mail2513-d.mymailbank.co.uk with SMTP; Sun, 5 Jun 2016 17:58:24 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.86_2 (FreeBSD)) (envelope-from ) id 1b9bO2-000KuX-W8 for freebsd-questions@freebsd.org; Sun, 05 Jun 2016 16:58:55 +0000 Date: Sun, 5 Jun 2016 17:58:48 +0100 From: Steve O'Hara-Smith 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> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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:59:12 -0000 On Sun, 5 Jun 2016 09:31:53 -0700 David Christensen 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