From owner-freebsd-current@FreeBSD.ORG Tue Sep 2 15:53:40 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDA1F106567C; Tue, 2 Sep 2008 15:53:40 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id 8522E8FC12; Tue, 2 Sep 2008 15:53:39 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.123.28] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1KaXpk-000JiZ-Q1; Tue, 02 Sep 2008 16:30:20 +0100 Received: from freaky by voi.aagh.net with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KaXpk-0002a9-JV; Tue, 02 Sep 2008 16:30:20 +0100 Date: Tue, 2 Sep 2008 16:30:20 +0100 From: Thomas Hurst To: Roman Divacky Message-ID: <20080902153020.GA94977@voi.aagh.net> Mail-Followup-To: Roman Divacky , Alexey Shuvaev , Ed Schouten , freebsd-current@freebsd.org References: <48BAD085.1090507@gmail.com> <20080831200950.GF99951@hoeg.nl> <871w04syfw.fsf@kobe.laptop> <20080901101121.GC4083@wep400x.physik.uni-wuerzburg.de> <20080901160844.GA56657@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080901160844.GA56657@freebsd.org> Organization: Not much. User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Thomas Hurst Cc: Alexey Shuvaev , Ed Schouten , freebsd-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: Tue, 02 Sep 2008 15:53:41 -0000 * Roman Divacky (rdivacky@freebsd.org) wrote: > > Back to original post, I confirm that [t]csh loses history after shutdown(8). > > might be completely irrelevant but tcsh on linux loses history for me as well :) tcsh doesn't bother doing any locking when merging .history, so if you kill multiple sessions at once, it's very common to see entries get lost, interlaced or doubled e.g: #+1220363109 ./setup.py uninsta#+1220237817 ... #+1220363109 ./setup.py uninsta#+1220237817 #+1220363109 ./setup.py uninstall -vv --manifest files.txt #+1220363109 iles.txt #+1220363109 d' I see it a lot when I close Terminator and kill the 4+ terms in it at the same time. If I ^D each term manually it's fine, if I kill half a dozen at once I'll probably lose half the history entirely and the other half will be badly mangled. I expect shutdown is having a similar effect. -- Thomas 'Freaky' Hurst http://hur.st/