From owner-freebsd-questions@FreeBSD.ORG Wed Jan 19 15:22:54 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 AA9E016A4CE for ; Wed, 19 Jan 2005 15:22:54 +0000 (GMT) Received: from catflap.slightlystrange.org (cpc2-cmbg1-3-0-cust94.cmbg.cable.ntl.com [213.107.104.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3132B43D46 for ; Wed, 19 Jan 2005 15:22:54 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.slightlystrange.org with local (Exim 4.43 (FreeBSD)) id 1CrHfY-000GXY-TW for freebsd-questions@freebsd.org; Wed, 19 Jan 2005 15:22:52 +0000 Date: Wed, 19 Jan 2005 15:22:52 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20050119152246.GA63214@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <200501182030.52598.shinjii@virusinfo.rdksupportinc.com> <20050118120305.GB75927@catflap.slightlystrange.org> <200501182210.29827.shinjii@virusinfo.rdksupportinc.com> <200501191432.42281.list-freebsd-2004@morbius.sent.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline In-Reply-To: <200501191432.42281.list-freebsd-2004@morbius.sent.com> User-Agent: Mutt/1.4.2.1i Subject: Re: Tab to Auto-Complete + .... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 15:22:54 -0000 --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 19, 2005 at 02:32:41PM +0000, RW wrote: > On Tuesday 18 January 2005 12:10, Warren wrote: > > I changed the shell type using: chsh -s /bin/csh >=20 > I think you want /bin/tcsh/ which is the enhanced version of csh. Inciden= tly I=20 It's the same thing: --->$ ls -i /bin/csh /bin/tcsh=20 24836 /bin/csh* 24836 /bin/tcsh* > think tcsh is the default for root, not csh, which is probably why=20 > auto-completion works for you in root. root:*:0:0:Charlie &:/root:/bin/csh File completion works because `set filec' is set in /.cshrc > It's recommended that you stick to shells in /bin for root, and tcsh is = the=20 > best of these. For non-root account you have more choice, bash and ksh ar= e=20 > 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 =2Ecshrc 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,= =20 without having to change root's default shell. I am afraid I can't help=20 with the syntax, as I don't use csh. HTH Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB7ntGhvzwOpChvo8RAjy0AKCsqT8/acc7yO4KFW0bhGr2OwbV3QCbB/g2 /NvGYv012XNP6ZC4mmm830w= =tMwO -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--