From owner-freebsd-questions Fri Oct 13 15:36:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60]) by hub.freebsd.org (Postfix) with ESMTP id CCECB37B671 for ; Fri, 13 Oct 2000 15:36:21 -0700 (PDT) Received: from ct-hartford-us445.javanet.com ([209.150.34.194]) by smtp01.mrf.mail.rcn.net with esmtp (Exim 3.15 #2) id 13kDR6-0001bk-00 for freebsd-questions@FreeBSD.ORG; Fri, 13 Oct 2000 18:36:20 -0400 Message-Id: In-Reply-To: <20000719000713.G239@parish> References: ; from lplist@q.closedsrc.org on Tue, Jul 18, 2000 at 04:00:09PM -0700 <20000718175345.A95605@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: From: media@ct1.nai.net Subject: changing root shell?? Date: Fri, 13 Oct 2000 18:36:20 -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I thought I was running sh. For some stupid reason I though sh was the default Unix shell. Maybe I should stop using a kerosene heater and wear a helmet. As it turns out, root is csh. I've been entering commands with sh syntax all along. I haven't received any syntax errors. Does this mean I could have trashed my system without knowing it?? >Which is now part of the base system; csh is a hard link to tcsh: > > # ls -li `which csh tcsh` > 335 -r-xr-xr-x 2 root wheel 622684 15 Jul 01:46 /bin/csh > 335 -r-xr-xr-x 2 root wheel 622684 15 Jul 01:46 /bin/tcsh My tcsh is in /usr/local/bin/tcsh, which wouldn't work in single user mode. At 9:46 AM +0930 07/19/00, Greg Lehey wrote: > >This is the real point. Why learn two shells when you can make do >with one? At some point you'll need to know the a Bourne shell family >member, so why bother learning a csh shell? This is the guy who wrote the @$#%* book, yet FreeBSD still starts up as csh!! In his book he says he uses bash. I've installed bash, but his book also explains that I can't use it as root because it's dynamically linked (whatever that means). I have heard that you should not change your root shell. However, sh seems to be in /bin on the root filesystem. So I don't see how that would cause problem. How would I go about changing it?? I'd also like to change my default editor (as I find vi very cumbersome). The book refers to editing files, but I can't seem to find which files I'm supposed to edit. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message