*BSD News Article 52754


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!uunet!in1.uu.net!comp.vuw.ac.nz!waikato!status.gen.nz!pinnacle.co.nz!not-for-mail
From: jonc@pinnacle.co.nz (Jonathan Chen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: sh history?
Date: 10 Oct 1995 13:11:03 +1300
Organization: Pinnacle Software Ltd, Auckland, New Zealand
Lines: 18
Message-ID: <45cdmn$i9@tui.pinnacle.co.nz>
References: <imgidataDG01B3.Ex7@netcom.com>
NNTP-Posting-Host: tui.pinnacle.co.nz
X-Newsreader: NN version 6.5.0 #3 (NOV)

In <imgidataDG01B3.Ex7@netcom.com> imgidata@netcom.com (Robert Fagen) writes:


>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?

Plain "sh" is minimal. No history, command line expansion, programmable
commands, aliases etc. That's the way it's always been. Other shells that
will provide what you want: csh, tcsh, bash, ksh, zsh, whatever. Take
your pick..
-- 
#!/bin/perl -s-- -export-a-crypto-system-sig -RSA-3-lines-PERL
$m=unpack(H.$w,$m."\0"x$w),$_=`echo "16do$w 2+4Oi0$d*-^1[d2%Sa
2/d0<X+d*La1=z\U$n%0]SX$k"[$m*]\EszlXx++p|dc`,s/^.|\W//g,print
pack('H*',$_)while read(STDIN,$m,($w=2*$d-1+length($n)&~1)/2)