From owner-freebsd-questions@FreeBSD.ORG Mon Aug 10 06:02:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 497D4106564A for ; Mon, 10 Aug 2009 06:02:22 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D04788FC20 for ; Mon, 10 Aug 2009 06:02:21 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n7A629Db016733; Mon, 10 Aug 2009 07:02:15 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n7A629Db016733 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1249884135; bh=NwvFXA+imB4v1wWETNiMl6iJiWeHpCmwyfYHwK+iNLc=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A7FB7DB.4020708@infracaninophile.co.uk>|Date:=20M on,=2010=20Aug=202009=2007:02:03=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.22=20(X11/20090724)|MIME-Vers ion:=201.0|To:=20Al=20Plant=20|CC:=20Polytropon=20,=20=0D=0A=20"freebsd-questions@freebsd.org"=20|Subject:=20Re:=20.cshrc=20=20History= 20missing|References:=20<4A7F57D9.20405@hdk5.net>=09<2009081001185 7.abc6eecd.freebsd@edvax.de>=20<4A7F5C1C.6000600@hdk5.net>|In-Repl y-To:=20<4A7F5C1C.6000600@hdk5.net>|X-Enigmail-Version:=200.95.6|C ontent-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A= 20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"-- ----------enig28E859301FB33428F0B3869A"; b=ZgWH2zb3FN0dPLgTlMvgZjyEc2zRIy1FlK5nB51y/jnsbIZ5HuJgF0G1T6/U3ioEe DwsLhaYUMA55E7f/+PvjB8rK2mnReTSt5+Go2qxDjfyUqRHM4PRVXz9qdKpAw+lCUT HStL1AGjMJ0iHvPbCCmN1mQCdw32Xi4gxguj0Gmk= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A7FB7DB.4020708@infracaninophile.co.uk> Date: Mon, 10 Aug 2009 07:02:03 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.22 (X11/20090724) MIME-Version: 1.0 To: Al Plant References: <4A7F57D9.20405@hdk5.net> <20090810011857.abc6eecd.freebsd@edvax.de> <4A7F5C1C.6000600@hdk5.net> In-Reply-To: <4A7F5C1C.6000600@hdk5.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig28E859301FB33428F0B3869A" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Polytropon , "freebsd-questions@freebsd.org" Subject: Re: .cshrc History missing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2009 06:02:22 -0000 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--