Re: .cshrc History missing

2009-08-10 Thread Matthew Seaman

Al Plant wrote:

Polytropon wrote:

Allthough I'm not familiar with the particular problem you
described, I observed that the history sometimes (!) does
not survive a reboot. It may have to do with a situation
where more than one shell is running. Idea: The last shell
closed (even forced) saves its history, so the history of
the other shells gets lost.

I've set those globally in /etc/csh.cshrc:

set history = 100
set savehist = 100

Sometimes, history survives, sometimes it doesn't. Very
strange...




Aloha Poly,

I'm glad to have somebody confirm this. I thought it was funny that this 
was happening.


I have earlier CURRENT 8 running on a couple of machines and they never 
acted this way.


This is root that is doing this on my test box.
 set history = 100
 set savehistory = 100
are in the .cshrc file.

I'll look in /etc/csh.cshrc

Thanks...


Yeah.  The history mechanism in tcsh doesn't cope very well with multiple 
ttys being closed down at once, as you tend to find when logging out of an
X session.  You get the history from just one of those shells. 


It's not a complete cure, but telling the shell to merge it's history with
what's already there:

   set history = 500
   set savehist = (1000 merge)

This helps, but it is not completely reliable when several shells are shutdown
in quick succession.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: .cshrc History missing

2009-08-09 Thread Polytropon
Allthough I'm not familiar with the particular problem you
described, I observed that the history sometimes (!) does
not survive a reboot. It may have to do with a situation
where more than one shell is running. Idea: The last shell
closed (even forced) saves its history, so the history of
the other shells gets lost.

I've set those globally in /etc/csh.cshrc:

set history = 100
set savehist = 100

Sometimes, history survives, sometimes it doesn't. Very
strange...



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: .cshrc History missing

2009-08-09 Thread Al Plant

Polytropon wrote:

Allthough I'm not familiar with the particular problem you
described, I observed that the history sometimes (!) does
not survive a reboot. It may have to do with a situation
where more than one shell is running. Idea: The last shell
closed (even forced) saves its history, so the history of
the other shells gets lost.

I've set those globally in /etc/csh.cshrc:

set history = 100
set savehist = 100

Sometimes, history survives, sometimes it doesn't. Very
strange...




Aloha Poly,

I'm glad to have somebody confirm this. I thought it was funny that this 
was happening.


I have earlier CURRENT 8 running on a couple of machines and they never 
acted this way.


This is root that is doing this on my test box.
 set history = 100
 set savehistory = 100
are in the .cshrc file.

I'll look in /etc/csh.cshrc

Thanks...


~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* - 8.* +
   email: n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org