From owner-freebsd-questions@FreeBSD.ORG Wed Jan 19 18:03:49 2005 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 D795516A4CE for ; Wed, 19 Jan 2005 18:03:49 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8328343D48 for ; Wed, 19 Jan 2005 18:03:49 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 7AB0CC51189 for ; Wed, 19 Jan 2005 13:03:48 -0500 (EST) X-Sasl-enc: 30GSj6MgaqVgvSbT3uv0GA 1106157826 Received: from gumby.localhost (dsl-80-41-78-107.access.uk.tiscali.com [80.41.78.107]) by frontend3.messagingengine.com (Postfix) with ESMTP id 6116725599 for ; Wed, 19 Jan 2005 13:03:45 -0500 (EST) From: RW To: freebsd-questions@freebsd.org Date: Wed, 19 Jan 2005 18:03:34 +0000 User-Agent: KMail/1.7.2 References: <200501182030.52598.shinjii@virusinfo.rdksupportinc.com> <200501191432.42281.list-freebsd-2004@morbius.sent.com> <20050119152246.GA63214@catflap.slightlystrange.org> In-Reply-To: <20050119152246.GA63214@catflap.slightlystrange.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501191803.35403.list-freebsd-2004@morbius.sent.com> Subject: Re: Tab to Auto-Complete + .... 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: Wed, 19 Jan 2005 18:03:50 -0000 On Wednesday 19 January 2005 15:22, Daniel Bye wrote: > On Wed, Jan 19, 2005 at 02:32:41PM +0000, RW wrote: > > It's recommended that you stick to shells in /bin for root, and tcsh is > > the best of these. For non-root account you have more choice, bash and > > ksh are popular. > > This is true enough. If you really want to use a different shell, then > you could probably write a conditional test to go in the default shell's > startup files. For example, to run bash, put a conditional test in > .cshrc to check that bash can be invoked without errors. If so, exec() > it. If not, then just continue with csh. Voila. You have a bash shell, > without having to change root's default shell. I am afraid I can't help > with the syntax, as I don't use csh. I don't really know whether that's safe. There was a long discussion about this recently and it was not about root being left shellless if /usr doesn't mount (in single user mode the default is sh anyway). There was a specific problem in the ports list that was tracked down to the someone not using a shell in /bin (and copying another shell to /bin is just as bad, unless it's statically linked). I didn't follow it in any detail - I decided it was just better to stick to tcsh for root.