Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!chi-news.cic.net!uwm.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!lerc.nasa.gov!usenet.ins.cwru.edu!clavelle!chet From: chet@clavelle.INS.CWRU.Edu (Chet Ramey) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: sh history? Date: 13 Oct 1995 14:15:03 GMT Organization: Case Western Reserve University, Cleveland, Ohio, USA Lines: 21 Message-ID: <45ls97$mll@madeline.INS.CWRU.Edu> References: <imgidataDG01B3.Ex7@netcom.com> NNTP-Posting-Host: clavelle.ins.cwru.edu In article <imgidataDG01B3.Ex7@netcom.com>, Robert Fagen <imgidata@netcom.com> wrote: > >I'm using sh (I've not had a chance to install another one), and I can't >find in the man pages or in the source (only a cursory glance through) >where the shell command history is stored. Am I spoiled with AIX at work >in that it goes in a file called '.sh_history'? Is there a similar >file in FreeBSD? The FreeBSD shell uses the 4.4 BSD `libedit' library to do history, which keeps the history list in memory. It is not stored in a file. Some shells store the command history in a file named by the shell variable `HISTFILE' when an interactive shell exits (and read the history from that file when an interactive shell starts) so it will persist between shell sessions, but the FreeBSD shell appears not to support that. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu