From owner-freebsd-current@FreeBSD.ORG Wed Oct 6 06:03:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6829516A4FB for ; Wed, 6 Oct 2004 06:03:47 +0000 (GMT) Received: from freebsd.takeda.tk (node-402413e2.sna.onnet.us.uu.net [64.36.19.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id E882543D68 for ; Wed, 6 Oct 2004 06:03:42 +0000 (GMT) (envelope-from d.kulinski@gmail.com) Received: from takeda.lan (takeda.lan [10.0.0.3]) by freebsd.takeda.tk (8.12.11/8.12.11) with ESMTP id i9663fZ2067505; Tue, 5 Oct 2004 23:03:42 -0700 (PDT) (envelope-from d.kulinski@gmail.com) Date: Tue, 5 Oct 2004 23:03:34 -0700 From: d.kulinski@gmail.com X-Mailer: The Bat! (v2.01) X-Priority: 3 (Normal) Message-ID: <12210998906.20041005230334@takeda.tk> To: Geoff Speicher In-Reply-To: <20041006010051.GA53821@sirius.speicher.org> References: <200410060019.i960JSbq012606@bunrab.catwhisker.org> <1F92A08DB846503C2933CB0D@[192.168.1.16]> <20041006010051.GA53821@sirius.speicher.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 06 Oct 2004 12:15:30 +0000 cc: "Jason C. Wells" cc: freebsd-current@freebsd.org Subject: Re: csh is root's shell? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 06:03:47 -0000 Hello Geoff, Tuesday, October 5, 2004, 6:00:51 PM, you wrote: >> >Well, per >> >http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/master.passwd?rev=1.1&conte >> >nt-type=text/x-cvsweb-markup it looks as if /bin/csh was root's shell as >> >of Revision 1.1, Sun Jun 20 13:41:37 1993 UTC (11 years, 3 months ago) by >> >rgrimes. >> > >> >No, I didn't check to see if it had changed back & forth in the interim. >> >> Wow. I must have been carrying my passwd files along with my upgrades >> since forever. I don't have a single system that has csh as root's shell. > I imagine it was made the default because of its supposed friendly > interactivity features. I personally find it quite the contrary (no > offense to Bill Joy of course), as do plenty of others. Google on 'csh > considered harmful' for a compelling argument. > The nice part about having csh as the default root shell is that > it actually discourages use of the root login. That nasty csh is > a constant reminder for me that I'm logged in as root and probably > shouldn't be. ;) I don't know what do you want from csh, (which is in fact tcsh), I was for a long time a bash fan, but once I was motivated to try tcsh, and it turned out that it's pretty good shell, it even has some features that aren't available in bash. I know that by default it looks terrible, but after setting some options it's pretty decent, here is part of my .cshrc, some options for other people might be annoying, and should be modified. if ($?prompt) then # An interactive shell -- set some stuff up set prompt = "`hostname -s`# " set filec set history = 100 set savehist = 100 set mail = (/var/mail/$USER) if ( $?tcsh ) then bindkey "^W" backward-delete-word bindkey -k up history-search-backward bindkey -k down history-search-forward #nicer than default prompt set prompt = '%n@%m:%/%# ' #time on the right side set rprompt = "%P" #tab behaves more like in bash set autolist #auto correction set autocorrect #what should be corrected #change to cmd if tcsh should only suggest #correction for command, not arguments set correct=all #you don't need to write cd to change directory #just write directory i.e. /root set implicitcd=verbose #prints exit value if is different than 0 #useful for commands that don't print anything set printexitvalue #protection against rm * :) set rmstar #shows who logs in and logs out set watch = ( 1 any any ) set who="%n@%M (%a)" #displays stats for processes that run longer than 1 #cpu second set time=(1 '%Uu %Ss %E %P %X+%Dk (max %Mk) %I+%Oio %Fpf(%Rmpf)+%Ww %rr+%ss SIG: %k %w+%c') endif endif -- Best regards, d mailto:d.kulinski@gmail.com http://www.takeda.tk