On Tue, Mar 13, 2012 at 07:05:22PM -0700, Claus Assmann wrote:
> On Tue, Mar 13, 2012, Hugo Villeneuve wrote:
> > On Mon, Mar 12, 2012 at 01:03:54PM +0200, lilit-aibolit wrote:
> 
> > > export HISTFILE=~/.sh_history
> 
> > Because last time I tried, it was unusable if you ran more than two
> > session concurently, as both shell would use the same file directly
> 
> Maybe try something like this?
> 
> HISTFILE=${HOME%/}/.ksh_hist.$$

:) funny

I think the default behavior when HISTFILE is unset (empty in process
memory buffer) is more usefull than an 1/32000 chance to get the
history of the last time ksh was run.

I personally do not beleive in an history file. I just wanted to
tell people that in OpenBSD's ksh, it works like nothing else.


Usually, the history file is used to seed the current shell process
in-memory history and when the shell quits, it's overwriten.

That's how it works in:

OpenBSD's csh, GNU's bash, etc.

Reply via email to