Date: Mon, 10 Aug 2009 07:02:03 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Al Plant <noc@hdk5.net> Cc: Polytropon <freebsd@edvax.de>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: .cshrc History missing Message-ID: <4A7FB7DB.4020708@infracaninophile.co.uk> In-Reply-To: <4A7F5C1C.6000600@hdk5.net> References: <4A7F57D9.20405@hdk5.net> <20090810011857.abc6eecd.freebsd@edvax.de> <4A7F5C1C.6000600@hdk5.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAkp/t+EACgkQ8Mjk52CukIx7igCghEMNFOQDlYbCBfWK+4NsZSSL
u2IAn1hzKXoUajbcG62TR6p7Es1EP0my
=VV3f
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A7FB7DB.4020708>
