Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2007 09:11:47 -0700
From:      Bill Campbell <freebsd@celestial.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Dangers of using a non-base shell
Message-ID:  <20071030161147.GA21097@ayn.mi.celestial.com>
In-Reply-To: <472647A0.3030009@brookes.ac.uk>
References:  <472647A0.3030009@brookes.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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