From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32444 invoked from network); 5 Oct 2022 23:07:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Oct 2022 23:07:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665011230; b=J583rG2/iKvVdSAC+9evtkP21mrm9bISfus6yI8w1oFjjhcTxdONTX6SEUcUiHG79zJQwi8pYv 0aXahKDdvyQkhG/gtmctrKICNU7854EasOgZcDDxqZSKRnknd78F3tGC69ERMMLVCYFBqoFd6a yAW4FARdpiVQUy0GllKB/pxjyacoAhByuqJwLeqp4mGSW63Liv5BOcyZfsOK1bCSxiU7627zfd 99fXCJqu0PRaJTt80WQPiQM6oCOn9qyrUAE6bv2QwTWnMmzCAJ/56w6onZmYWK2nsx/JGImYy1 3CfSzV55jaS1TnNBrd2G+3HuawSs63PssnGlosTJVx1YcA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.20; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.de; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1665011230; bh=KPisRINozD/fcvev0oCXlF/ixlPxQ4wLuVraub1ZiUw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:In-Reply-To:Content-Type: MIME-Version:References:Reply-To:Message-ID:Subject:To:From:Date: DKIM-Signature:DKIM-Signature; b=oe9pd/Bp0hw0acCrgZQSPrFrmdes8f6zpi4acv7XOuoFpnFEwp8BWgQOF1wQ/fEnkCJDu0thvJ NLAmfib288Jc7MjRAVau9iN3Y2yF9dmRna7WfXKlQcnKMy0r4A36D3ltZYxViJJWu37DuswRDv D2yXVq6do0W45u3J7GpF9nZaYoZNPhxSaePLWeAOVPAnQwOCI/RC4moQ9gUJIlpmShadLYoAUy VlFt4i+PisAPVqU1BLIjxL+JlZOid+ouBIZud3zsbRqcPoj8mV1cKMRL3SUEUGeOjONmdwRmjD QGqJR5ZLlZVwg9tdemJKUiShlXA5lSb0PpDRdo/HbkM9Uw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding:In-Reply-To :Content-Type:MIME-Version:References:Reply-To:Message-ID:Subject:To:From: Date:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=rxo0MYhUC8VM+9Q8NMNnOkVPKfqdzYeNezswKD69MbA=; b=FKCtZDUuG91ERJGM61B3JrS5ZG VZ0tfRjqWbmglfjUJBn8njKM9hjpj1P5jDfaytAAYYMrRuG6kSeUO/C1fHHKlkm8BUxaKnasbvfeo +lZWNU0zwQwrWPPlLkc3PkhgUr/13XJNKQBR2DmNOd3J//GTdURX9lgNItdu2KIO0Tm8tWs3ZITXW sflYZGd51ci/qf2lTt1RlJNvmzaxuGqnQxtINtJ1ELwLHN7p9B/9ZcQQILBxLUXfYa8T8TBH1gX3c pvd29Hs8ijuka3qWGS/j2syiygAqxoHs1lSz5S0q/i0z0QnJ/EtMk3Ej+ftiV6IOEmZg/wHlnMbBl JnyUqvRg==; Received: from authenticated user by zero.zsh.org with local id 1ogDTo-000AUG-Py; Wed, 05 Oct 2022 23:07:08 +0000 Authentication-Results: zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.20; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.de; arc=none Received: from mout.gmx.net ([212.227.17.20]:49613) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ogDPx-0006RQ-Hq; Wed, 05 Oct 2022 23:03:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665010989; bh=KPisRINozD/fcvev0oCXlF/ixlPxQ4wLuVraub1ZiUw=; h=X-UI-Sender-Class:Date:From:To:Subject:Reply-To:References: In-Reply-To; b=goTDIuhfdjMCKIbBiMfGpaGkzVG93NiSG0ADOpHHAhiV4cgV9EFhL1t399joTY31o 915nQ45InYTBPk8dqHcgiJ7BPjgufAWKZadQzAd1WCqcR76Svedh/syXF/GpI3MI0V ekoWXvCYz63U1td0EMPPAVm/ORx1AwJP368dyAmc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from zitrone.obstwiese ([46.223.163.213]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N5mGB-1pHaa73eYt-017Fe2 for ; Thu, 06 Oct 2022 01:03:08 +0200 Received: from luthien by zitrone.obstwiese with local (Exim 4.94.2) (envelope-from ) id 1ogDPu-0002Ou-2t; Thu, 06 Oct 2022 00:03:06 +0100 Date: Thu, 6 Oct 2022 00:03:06 +0100 From: Dominik Vogt To: zsh-users@zsh.org Subject: Re: Bug: Losing .zsh_history Message-ID: Reply-To: dominik.vogt@gmx.de Mail-Followup-To: zsh-users@zsh.org References: <50fa26c9-98aa-1fc7-6bc5-f552a1f450f3@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:ofKPWmxlTOaMknfF6m0ZImGPrcIRrj274QwugyK9SCxzpENntqG FmUg5QC8/R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P5/dFju4KdDkxEFmGnsFAqOvnLue1jE gvRaGd//NkbWo4/IXgspE+ZqGRAkvbrOZGXmOmy7jIDkS0YN0r5Q/HMXVf08bEbF4A3U3pLnq zHjLa42GLdZQUck6QaQbGt5cLEYJ6A6qAxjZKDVRXgsbAUej1UuqHWAbfy+KlSmppo+pQxRXq Ql2Nh4gXWO1v4a1nmNKBVsyHySWnPJ/KA30Ug86vYOylzuToNy6jU+XUxq2E0m0eEeTbc846k A/Om3cTw6zLqJkFYTtuU3H9rxNyqYywzAEY0IwkGD1ctUWQDiJfpjtVSjPkkh1mkRS52/5/qM wgs96AGPik29RJS9ywVn5c5GzhrCq+1gom2KOVeYKEzsDXcNbCvHjn0RfrempVNbTeLQO0adr KB6VfVkuGhPHmdpRtdGab7bK9nfUZIItD9Lw3uGLmBi4giSLme3WJX9PdNmaHZxREHhL+Z8i5 XhP40efenkN67mXaMPjf/rVOaWViGfr3H/QkHSfoDwJzHearILCrSqXHf4LOzGs5OOXiIPL+Z Qco/JQz0m4yBQzIIwp4UZsKAPrJJE+gWx3EfslLpvAytcstiIfa5D4BcpMQjSaIZZgOTFCWaN O8YlTTLcjIN3agVFpAYC3rxcW1E1otxH18fgtD3/cNIF39qL7voZbYGRoDyPLFl4QmiwbpAQm 7kVMx0a09pRqwqGw2lc2osQSpOgtHd/UiWMmYwncfVJ6t Content-Transfer-Encoding: quoted-printable X-Seq: 28183 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Wed, Oct 05, 2022 at 03:31:07PM -0700, Bart Schaefer wrote: > Somethig like that is the most likely culprit: The filesystem has > allocated space for the buffered content to be written out, but > cutting the power brings the system down before the buffer is flushed > to disk. This is most often seen on "soft-mounted" NFS filesystems > that use delayed writes, but it's certainly possible to happen locally > on abrupt loss of power. > If avoiding FS lossage is important enough to you ... Not at all, I just don't want to lose the shell history. > If the problem merely seems to be that a shell you can't see has > started up and is trying to update the history when it shuts down, you > could add something to .zlogin to make a backup copy of the history > when the shell starts. Yes, but that would considerably increase SSD wear (see other mail thread); so I do it manually once in a while. > The circumstances you've described are odd, > though, because I wouldn't expect a shell to have any opportunity to > begin processing its shutdown when power is cut. If the same problem > that causes the blank display has already killed the shell, there may > be a connection between the failing display and failing disk > operations. Actually, what's really strange is that the shell should not be started at all in this situation: The display only ever fails when powering on; once it works it keeps working. In that situation I don't log in because I can't see anything. I'm not even sure getty starts up at all. So, why does any zsh run at all if I can't even log in? Ciao Dominik ^_^ ^_^ =2D- Dominik Vogt