From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 20:09:52 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 633391065670 for ; Sun, 31 Aug 2008 20:09:52 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 238068FC26 for ; Sun, 31 Aug 2008 20:09:51 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 42BD71CC73; Sun, 31 Aug 2008 22:09:50 +0200 (CEST) Date: Sun, 31 Aug 2008 22:09:50 +0200 From: Ed Schouten To: Pawel Worach Message-ID: <20080831200950.GF99951@hoeg.nl> References: <48BAD085.1090507@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="S/fPHpVs8+EC64rw" Content-Disposition: inline In-Reply-To: <48BAD085.1090507@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: current@freebsd.org Subject: Re: csh history and pts X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 20:09:52 -0000 --S/fPHpVs8+EC64rw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Pawel, * Pawel Worach wrote: > Hi, > > Since the MPSAFETTY landing and pts being the default csh seems to loose = =20 > the contents of ~/.history when "shutdown -r now" is issued, I'm not =20 > sure about the timeframe but I have not noticed this before and I use =20 > history quite a bit. > > Steps to reproduce (tested with root): > 1) Login on console (ttyv0) > 2) Issued a couple of commands > 3) Logout > 4) Login > 5) 'history' and your previous session shows up, all good. > 6) 'shutdown -r now' > 7) After boot, login, 'history' and it's blank. > > At step #6 a reboot(8) does not cause this, only shutdown(8), or at =20 > least so it seems. Does shutdown(8) send a evil signal to csh so it =20 > looses the history? > > Relevant parts of .cshrc: > set history =3D 2000 > set savehist =3D (2000 merge) Can you tell me how pts is related to this? Looking at your steps, I can't see how pts is involved with this, because you happen to use syscons(4) here. Some people on IRC told me that (t)csh had some problems with "pty detection" with MPSAFE TTY, but grepping through the source and asking various people around the globe, I still have no idea what "pty detection" is and why (t)csh has the urge to "detect pty's". Maybe a (t)csh guru can help me out? --=20 Ed Schouten WWW: http://80386.nl/ --S/fPHpVs8+EC64rw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAki6+o4ACgkQ52SDGA2eCwWMJQCfefvBvA4GX+5uS1UDEsRKFxmY NEgAmwRcqtT8VBM8xyJ37IvYUc/s7aMK =Xrl2 -----END PGP SIGNATURE----- --S/fPHpVs8+EC64rw--