> The problem is that the command histories are not
> preserved. The .bash_history file contains the history
> of whatever bash saved to it last before logout.

Yes, me too.  :)

I use tcsh shell. The cwd is preserved, I expect this is done by konsole
as tcsh itself wouldn't have a clue about it (konsole looking into the
process table for the cwd info). The command history is preserved by
tcsh, and when saved, merged with the already saved content by use of a
time stamp (also saved). If I exit each shell manually, the history is
correctly saved. If I just exit KDE, none of the histories of any shell
is saved. I conclude that konsole kills the shells in such a way which
doesn't allow the shell to save its history. It's also possible that
tcsh has concurrency issues when saving histories, and that only the
history of the first shell to exit was saved, but I never noticed that
to be the one in which I did recent work. As you say it doesn't work any
better under bash, which makes it more likely a konsole issue. Verify
with xterm... Of course if bash can't merge histories at all, you're out
of luck.

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to