From owner-freebsd-questions@FreeBSD.ORG Fri Apr 30 05:57:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2688D16A4CE for ; Fri, 30 Apr 2004 05:57:34 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id C556B43D3F for ; Fri, 30 Apr 2004 05:57:33 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 1267D13619; Sat, 1 May 2004 00:57:31 +1200 (NZST) Date: Sat, 1 May 2004 00:57:30 +1200 From: Jonathan Chen To: Jamie Message-ID: <20040430125730.GA3033@grimoire.chen.org.nz> References: <20040429231930.D8617@floyd.gnulife.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040429231930.D8617@floyd.gnulife.org> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: OT: environment variables, job control X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 12:57:34 -0000 On Thu, Apr 29, 2004 at 11:33:21PM -0500, Jamie wrote: > I'm using FreeBSD 4.9. Hopefully this is not too far off-topic. > > My login shell is set to /bin/csh. Why is it that when I: > > % /bin/sh > $ echo $SHELL > > I get: > $ /bin/csh Because $SHELL is set by the login process and not the shell. /bin/sh doesn't invoke any special processing when it is invoked (/usr/local/bin/bash on the other does quite a bit). Try it out on other UNIXes, and the behaviour is the same. -- Jonathan Chen ---------------------------------------------------------------------- "Lots of folks confuse bad management with destiny" - Kin Hubbard