Quote:
Originally Posted by Carpetsmoker
Update:
I just tested this, I connected with putty, closed the session by going to the task manager and killing putty, and when I logged back on, the history was saved.
|
It seems to work here as well if I login as a normal user then close the putty using the X in the corner.
However if I login as a normal user and then do a 'su -' and then close using X in the corner, the normal user seems to have his history saved but nothing he did when he was root was saved in root's history.
If I logout from being root before closing with X, then root gets the .history file updated.
I have the savehist set properly I believe and the csh manual says that this implies 'history -S' ... so that shouldnt be a problem either?