From owner-freebsd-questions@FreeBSD.ORG Tue Oct 30 16:10:18 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B485A16A418 for ; Tue, 30 Oct 2007 16:10:18 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id 6B63D13C4A7 for ; Tue, 30 Oct 2007 16:10:17 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id 168AB680036C2; Tue, 30 Oct 2007 09:11:48 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UG5atoVpKMaJ; Tue, 30 Oct 2007 09:11:48 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id EF29568002901; Tue, 30 Oct 2007 09:11:47 -0700 (PDT) Date: Tue, 30 Oct 2007 09:11:47 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20071030161147.GA21097@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <472647A0.3030009@brookes.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <472647A0.3030009@brookes.ac.uk> User-Agent: Mutt/1.5.11 OpenPKG/2.5 Subject: Re: Dangers of using a non-base shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 16:10:18 -0000 On Mon, Oct 29, 2007, Stephen Allen wrote: >It's been drawn to my attention not to use bash from the ports >collection, because if one of it's dependencies (gettext or libiconv) >fails or is updated significantly, it could break, and prevent login. >The suggested solution was to use a base shell (such as sh) and append >'bash -l' to .shrc to automatically enter bash. > >The quite annoying side-effect is having to type 'exit' twice to get out >of a su shell or screen. Try using ``exec'' to start these which will replace your current shell with the one being exec'ed. Bill -- INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 Many companies that have made themselves dependent on [the equipment of a certain major manufacturer] (and in doing so have sold their soul to the devil) will collapse under the sheer weight of the unmastered complexity of their data processing systems. -- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5