Josh Hurst wrote:
> 
> How can I switch the shell history file (~/.sh_history) at run time
> and send all the newly entered commands to that file?

Looking at the code... currently it does not support switching the size
of the history file or the history file name on the fly.

I've added that to my ToDo list (for ksh93t- ; ksh93s is more or less
done right now) - basically we have to flush+close the current history
file if ${HISTSIZE} or ${HISTFILE} are changed and re-open it at the
next read or write access with the new parameters (this implementation
avoids that multiple sets of ${HISTSIZE}/${HISTFILE} generate a
flush,close,open-sequenece for each time one of these variables gets
"set").

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to