I am running under HP-UX 10.20 and I would like to be able to recall my
command line history only for
the xterm/shell that I am currently logged into.
Currently, my $HISTFILE environment variable is set in my $HOME/.profile as
so I changed it to:
to resolve out to be my .kshist file with the process id of the shell I was
running appended to the end.
This seems to work fine and I get the functionality I was looking for except
that there could
potentially be many .kshist.pid files laying around even after I exit my
Does anyone know of a way in HP-UX that when I exit the xterm or shell that
$HOME/.kshist.pid file can be automatically removed?
Any ideas is appreciated.