View Single Post
  #2   (View Single Post)  
Old 12th December 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

What's your savehist setting in in the tcsh start file?
I've been using:
Code:
set savehist = 4096 merge
For ages, and never noticed any "amnesia" from my shell, but as I understand tcsh(1), $ history -S is run "when exiting the shell". I'm not sure if losing a ssh connection is handled as a "proper" exit.

You can try adding $ history -S to /etc/csh.logout, and you can of course also run it manually to save the history ...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote