Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!sci.ccny.cuny.edu!phri!marob!daveh From: daveh@marob.masa.com (Dave Hammond) Newsgroups: comp.unix.questions Subject: Re: no command history with ksh as root? Keywords: ksh history root Message-ID: <25D17CC4.45C8@marob.masa.com> Date: 8 Feb 90 14:05:54 GMT References: <497@siswat.UUCP> Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC, New York City Lines: 17 In article <497@siswat.UUCP> buck@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@marob.masa.com uunet!masa.com!marob!daveh