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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig28E859301FB33428F0B3869A Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable 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 =3D 100 >> set savehist =3D 100 >> >> Sometimes, history survives, sometimes it doesn't. Very >> strange... >> >> >> > Aloha Poly, >=20 > I'm glad to have somebody confirm this. I thought it was funny that thi= s=20 > was happening. >=20 > I have earlier CURRENT 8 running on a couple of machines and they never= =20 > acted this way. >=20 > This is root that is doing this on my test box. > set history =3D 100 > set savehistory =3D 100 > are in the .cshrc file. >=20 > I'll look in /etc/csh.cshrc >=20 > Thanks... Yeah. The history mechanism in tcsh doesn't cope very well with multiple= =20 ttys being closed down at once, as you tend to find when logging out of a= n X session. You get the history from just one of those shells.=20 It's not a complete cure, but telling the shell to merge it's history wit= h what's already there: set history =3D 500 set savehist =3D (1000 merge) This helps, but it is not completely reliable when several shells are shu= tdown in quick succession. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig28E859301FB33428F0B3869A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----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----- --------------enig28E859301FB33428F0B3869A--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A7FB7DB.4020708>