login
Header Space

 
 

Re: ksh history question

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jason McIntyre <jmc@...>
Cc: OpenBSD Questions <misc@...>
Date: Monday, January 28, 2008 - 9:53 pm

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On Mon, Jan 28, 2008 at 11:32:00PM +0000, Jason McIntyre sez: > On Sun, Jan 27, 2008 at 05:27:26PM -0600, Denny White wrote:

Thanks, Jason. Yeah, I tried the HISTFILESIZE too. What's really
weird is, just all of a sudden, it started working! But, instead
of it starting with the number 1 on the beginning, with HISTSIZE
set at 50, e.g., you run 'fc -l 0' & you might see the beginning
number 163 with the most current command number being 211. It
never goes all the way to 50 commands, usually just 48 before
dropping one off the tail end. This is no problem, I just must be
misunderstanding the man page. Another thing I found out is, after
copying $HOME/.profile to $HOME.kshrc, removing all mention of
HISTFILE & HISTSIZE from .kshrc & putting only the following in
.profile

HISTSIZE=50;export HISTSIZE
HISTFILE=.ksh_history;export HISTFILE
ENV=$HOME/.kshrc
export ENV

it works just the same as if there was no .kshrc file & everything
was still all in .profile. I've got it running one way on one box
& the other way on another box, & they're both working. Why they
didn't work before is a mystery to me. But, I learned something
anyway about being able to do it two different ways. Thanks for
the answer.

-- 

Denny White

All messages scanned by ClamAssassin
http://jameslick.com/clamassassin/
===============================================================
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===============================================================
iD8DBQFHnoXpy0Ty5RZE55oRAlWQAJ0dPTy8YPFpLUkFhwvffPPBGqQlegCgyCD/
wiyKY3CVLCv20grRO5N7dgc=
=lGiL
-----END PGP SIGNATURE-----
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ksh history question, Denny White, (Sun Jan 27, 7:27 pm)
Re: ksh history question, Steve Mayer, (Mon Jan 28, 7:26 pm)
Re: ksh history question, Denny White, (Tue Jan 29, 1:55 am)
Re: ksh history question, Jordi Espasa Clofent, (Mon Jan 28, 6:56 pm)
Re: ksh history question, Denny White, (Tue Jan 29, 1:49 am)
Re: ksh history question, Jason McIntyre, (Mon Jan 28, 7:32 pm)
Re: ksh history question, Denny White, (Mon Jan 28, 9:53 pm)
speck-geostationary