On Mon, Apr 20, 2009 at 11:38:44AM -0700, Garrett D'Amore wrote:
> Is there a way I can get this behavior with ksh93, instead of the 
> default "all windows share a common history file" behavior?  (Note: as a 
> consequence of this, I don't care if I don't have history saved to a 
> file -- in fact I prefer it *not* to be.)

All you have to do is set HISTFILE to a value that is unique for each
shell process.

E.g.:

[[ -z "$HISTFILE" || ! -w "$HISTFILE" ]] && export HISTFILE=/tmp/.ksh_hist.$$

Sprinkle mktemp(1), $TMPDIR, $USER/LOGNAME, $HOME, ... as you desire.

(There used to be a bug w.r.t. HISTFILE where you had to exec $SHELL
again before it would take effect, but this has been fixed.  FWIW I
hated that bug.)

Nico
-- 

Reply via email to