Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2004 16:23:27 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        addymin@pacbell.net
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Beginner's question about csh/tcsh
Message-ID:  <200404152023.i3FKNSC19939@clunix.cl.msu.edu>
In-Reply-To: <407EE04B.5050800@pacbell.net> from "Mike" at Apr 15, 2004 12:19:39 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Jerry McAllister wrote:
> 
> >>>It sounds like you are using an account with /bin/sh as a shell
> >>>For example, unless you change it, root uses sh for a shell.
> >>>
> >>>////jerry
> >>
> >>Root uses csh by default.
> > 
> > Well, I'll be darned.  It does now.
> 
> BTW.  I login as normal user and "su" to root for adminstrative tasks.
> 
> I checked what shell root was using and it was sh (/bin/sh).  So the 
> information on my first post was inaccurate.  My bad. I thought the 
> shell was csh.

I guess that is now the default.

> So, I changed root's shell to csh.  The problem of no .history via up 
> and down arrows went away.  The arrow keys now access the .history file.
> 
> Strange.  Did I possibly do something to screw up the sh shell?

I don't remember the FreeBSD version being mentioned.   Maybe if it
is old enough, it would be /bin/sh.   It used to be that I think
some time ago.  I don't remember how far back (or maybe if I am
thinking of a different UNIX).    

Otherwise, someone (you?) may have modified the root entry on your
machine in /etc/passwd to have /bin/sh as its shell for some reason.

////jerry

> Michael Chinn
> > 
> > ////jerry
> > 
> > 
> >>Josh Paetzel
> >>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404152023.i3FKNSC19939>