Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 1997 10:20:56 -0800 (PST)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        rjmcintire@wilshire.net
Cc:        questions@freebsd.org
Subject:   Re: Key mapping
Message-ID:  <Pine.BSI.3.94.970310101853.1052G-100000@localhost>
In-Reply-To: <199703100038.QAA04178@train.tgci.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 9 Mar 1997, Riley J. McIntire wrote:

> Thanks for the quick response on the checksum--imapd is up and 
> working!

You're quite welcome.

> Another question if you will--a pointer to a tutorial or faq would be 
> fine.  Using bash, I find that the backspace works and the up arrow 
> scrolls through the command history.  When I su to root, though, I 
> lose this functionality.
> 
> How do I change this?

Change your su command to be:

su -m

This will preserve your environment and shell for the root process. I do
this with my csh derviative with the command

alias su 'su -m'

in my .cshrc.

See the bash man page for proper command syntax, and you'll want to put it
in your .profile or .bashrc so it's automatically loaded in every shell.

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970310101853.1052G-100000>