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=0.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 11950 invoked from network); 5 Oct 2022 20:24:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Oct 2022 20:24:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665001471; b=gILGLcvr66y9uNy8Knc+gdX+Jjhl0aXv3wvfvozoQYrz70gfdVONFTuqhu3NksTvG2NeJPeiQI Ab8R5UkMzbatL/PBcBsSnkMiSeiZtZCImrbd1WV2gOea38dZgFZpFFrS3Zs94YmGd6GGbAZoXg hPZfAirHgeVoJlfd85NkgTvQaKjt7KztDjoUm8xXWJUQX6t+QCGfu9FpMHSaX/aVH2hAgttbXu FRMj53kAEhZZAPMvJFKgnXm8E1fFpEET4ev3JfZnDlfrduxnSmzadvuWoXqBm/bO6E2BlHnqr8 fTRRs+ovyPeqd9V2rC2lGWo4WWzOnzVG/hnnme7CnJvUfQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.22; 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=1665001471; bh=ozQkZJkqKargWwEZhEVxiP1VO5DtSDguuHbk273DSeQ=; 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=GU9LCfqnmDcigpGevAHWTcOm1vKgccKjqCh8noLLPRx+Q/ZxSXqj0OfHWBkZR9ivirp8+igN+E Gja/DKXiuXFGgasmWqFSB9APXrbq/qSNcVuQbQFm21yr98lI0eEWP9vqIUlkQZaXXLg1ij2w1h cH0ZMWb/SG4vYL/k1qFsB2uV6xeQPhswdq7sKDlBgdFYDOIag+moqxOOeF+AWixLb1TLG24mab fexh+drNoUOsK5O855ShDfxbarqhcYaw8nMVsG4hcUtQJSABUGlI0qbgtyp3VtwzK1+CcotH+w 2Qcedo624N0DnAD2oZSfL6pNF86H3M8zNcJewjl5AZNDCQ==; 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=UOykmMM/oEOKfxVJArrTHdVBj46ZykogjM/txWrHmrc=; b=ZuO9iJvCKeC3VuWij8/KJMUQly kgsBpCfnsuUKzWayqBT96Ts9s7PYhI121tIjiML1Yr4KZj748t4vvNqSr5foHvlxQoo5AHqkgLXTW 3Cx58Zm2wjUzdv1tuJX6rYoxUBNR2q7zChiNUxFaAzF7t7+OlwmXtsiUDFyqJOaXBPOs2v2OSTQ6t JfI5b6iWaYcIF6+Im2VIFPAhRzP8CqltRT96ScyP4jgHIw1vsK+pdm7yGSLaPuBMhyrw4BpDQSE+d HtPPw5BKq4ngHfk42YKi+lO7n0qeIxTt0iYMZAYlOoz+pkQ1y9wr+rZ/jyE+LsvK9ljNscRgIQfKU q/k077ww==; Received: from authenticated user by zero.zsh.org with local id 1ogAwQ-000JN9-PI; Wed, 05 Oct 2022 20:24:30 +0000 Authentication-Results: zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.22; 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.22]:39203) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ogAs7-000IYf-Ta; Wed, 05 Oct 2022 20:20:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665001203; bh=ozQkZJkqKargWwEZhEVxiP1VO5DtSDguuHbk273DSeQ=; h=X-UI-Sender-Class:Date:From:To:Subject:Reply-To:References: In-Reply-To; b=Zc5vDOxWRQP7V+VcVrTcu8Jzo9rsbxKOx2ERX5pFyrCUk1179OofVRvMLg7m2cX+A Gtkx+QfXXHEZl3VcxS+wclCp08PLFMCgbQO6nKBB3k71p6bVAyo8bA8/op5Va86os8 2c8Xme9nAuMrGhOx30d9xkPPUgibD9Qb+O3ZcALQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from zitrone.obstwiese ([46.223.163.202]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MmUHp-1p67t40ZP7-00iQZT for ; Wed, 05 Oct 2022 22:20:03 +0200 Received: from luthien by zitrone.obstwiese with local (Exim 4.94.2) (envelope-from ) id 1ogAs4-0000jQ-PK; Wed, 05 Oct 2022 21:20:00 +0100 Date: Wed, 5 Oct 2022 21:20:00 +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: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:mFGhNcupLeYj1e1gZYYsGdp1xC/2qeVbPIxCgBondkOF+fHr9EG hqnayV75b2pRP6U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E4jgQSEwsuSvvY49GrHM 6YquBjfa/FUQl6jLBCCHtU5U4W0SIFwUsr+PGrRxo0c5mTduHDUhf/o608cYb5V5s1+VVhAxE PNmve+g6lCy1/BHVj6SS9JP2Mf5jLuKRXTxi047jvU6BjemdXL81T77uCycMMUrbr3bpCNszX e0jH9llnTC8aLqrzuSpEtME5AGh0c6YJHO23YjWSMvSEQRNacKlPx8XrcHb454e1BKW8EtsNx kb11vJ1PWkwluwpeLEoWGrvEjK8guqzrVzfqNaijq5YGPEesR+MOxcCdfm3EuqIEfSp/kCA7B KDTF2gZxLFq8cw3La1Mqj95LO3 Content-Transfer-Encoding: quoted-printable X-Seq: 28174 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 04:01:01PM -0400, Eric Cook wrote: > On 10/5/22 15:55, Dominik Vogt wrote: > > Due to some hardware problem with the display adapter my box > > sometimes fails to show anything on the screen but just emits some > > error beeps while it boots. Since I cannot log in and stop the > > machine without the screen, I can only switch off the power. > > > > It has now happened twice that in the wake of the hard switch-off, > > ~/.zsh_history got completely erased, replaced with all null > > characters, but keeping its size (or at least nor being truncated > > to zero size). > > Is it actually erased or the last line is full of null bytes? I have no way to reproduce that at will and it has only happened twice in the last ten years. (Since the first time I make a copy once in a while.) The second time is several weeks ago. So, I can say with certainty that when this happened I used vim to look at the history file in a 80x24 terminal window and that showed all "^@"s (i.e. 23 lines * 40 nulls =3D 920 nulls). I'm not sure whether I looked at any other portion of the file, but normally I'd check the last line too. I definitely didn't check what was in between and definitely didn't see anything but nulls. (The last line may be identical to the first line.) Ciao Dominik ^_^ ^_^ =2D- Dominik Vogt