no command history with ksh as root?

Dave Hammond daveh at marob.masa.com
Fri Feb 9 01:05:54 AEST 1990


In article <497 at siswat.UUCP> buck at siswat.UUCP (A. Lester Buck) writes:
>On two different systems, ksh history editing just beeps at me in vi
>mode instead of rolling back to the last command.  Things work fine
>if I am a normal user.  There is a .sh_history file that contains the
>history in both cases.

For some reason (security, I guess), ksh wants HISTFILE and HISTSIZE
to be defined in the root .profile.  Try:

HISTFILE=$HOME/.H/.sh_history
HISTSIZE=250
export HISTFILE HISTSIZE

--
Dave Hammond
daveh at marob.masa.com
uunet!masa.com!marob!daveh



More information about the Comp.unix.questions mailing list