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=-1.3 required=5.0 tests=MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2693 invoked from network); 29 Jul 2020 15:16:30 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 29 Jul 2020 15:16:30 -0000 Received: (qmail 18706 invoked by alias); 29 Jul 2020 15:16:20 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: Sender: zsh-workers@zsh.org X-Seq: 46283 Received: (qmail 9182 invoked by uid 1010); 29 Jul 2020 15:16:20 -0000 X-Qmail-Scanner-Diagnostics: from buffalo.birch.relay.mailchannels.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25884. spamassassin: 3.4.4. Clear:RC:0(23.83.209.24):SA:0(-3.0/5.0):. Processed in 0.712217 secs); 29 Jul 2020 15:16:20 -0000 X-Envelope-From: perette@barella.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf1.mailchannels.net designates 23.83.209.24 as permitted sender) X-Sender-Id: a2hosting|x-authuser|perette@barella.org X-Sender-Id: a2hosting|x-authuser|perette@barella.org X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|perette@barella.org X-MailChannels-Auth-Id: a2hosting X-Tart-Irritate: 523470fe6665147b_1596035742321_2107956247 X-MC-Loop-Signature: 1596035742321:1431633901 X-MC-Ingress-Time: 1596035742321 Subject: Re: zsh: corrupt history file To: Roman Perepelitsa Cc: zsh-workers@zsh.org References: From: Perette Barella Message-ID: <271b648e-9c30-3333-cfca-dedf8df9e248@barella.org> Date: Wed, 29 Jul 2020 11:15:40 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-AuthUser: perette@barella.org I tracked down the export, removing it works. Must have put that in the .zshrc 5 years ago, when I first looked at it, before deciding it was broken because the history kept getting corrupt. Perhaps update the man page for $HISTFILE: HISTFILE The file to save the history in when an interactive shell exits. If unset, the history is not saved. Do not export this parameter, as doing so may cause other shells to corrupt the history file. Thanks Roman, Perette On 2020-07-29 10:39, Roman Perepelitsa wrote: > On Wed, 29 Jul 2020 at 16:33, Perette Barella > wrote: > > Research on Google suggests the 'corrupt history file' problem is rare. > In my experience, it is not > > > Are you perchance exporting HISTFILE? You shouldn’t. > > Roman. > -- Perette Barella • 176 Middlesex Road, Rochester NY 14610 • 585-317-3013 "Once we realize that imperfect understanding is the human condition there is no shame in being wrong, only in failing to correct our mistakes." -- George Soros