Date: Sun, 31 Aug 2008 22:09:50 +0200 From: Ed Schouten <ed@80386.nl> To: Pawel Worach <pawel.worach@gmail.com> Cc: current@freebsd.org Subject: Re: csh history and pts Message-ID: <20080831200950.GF99951@hoeg.nl> In-Reply-To: <48BAD085.1090507@gmail.com> References: <48BAD085.1090507@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--S/fPHpVs8+EC64rw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Pawel, * Pawel Worach <pawel.worach@gmail.com> 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 <ed@80386.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080831200950.GF99951>