Date: Fri, 13 Oct 2000 18:36:20 -0400 From: media@ct1.nai.net To: <freebsd-questions@FreeBSD.ORG> Subject: changing root shell?? Message-ID: <v03130300b60cfbe62f8f@[209.150.38.175]> In-Reply-To: <20000719000713.G239@parish> References: <Pine.BSF.4.21.0007181557060.11935-100000@q.closedsrc.org>; from lplist@q.closedsrc.org on Tue, Jul 18, 2000 at 04:00:09PM -0700 <20000718175345.A95605@localhost.localdomain> <Pine.BSF.4.21.0007181557060.11935-100000@q.closedsrc.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v03130300b60cfbe62f8f>