Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh: corrupt history file
- X-seq: zsh-workers 46283
- From: Perette Barella <perette@xxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: zsh: corrupt history file
- Date: Wed, 29 Jul 2020 11:15:40 -0400
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <CAN=4vMro1cy6FvD+2zM7zsY9cwCscYVYAt4soVcshaHS0BY1bQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <b165b1b4-e2b2-5917-53f5-9aa584084e66@barella.org> <CAN=4vMro1cy6FvD+2zM7zsY9cwCscYVYAt4soVcshaHS0BY1bQ@mail.gmail.com>
- Sender: zsh-workers@xxxxxxx
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 <perette@xxxxxxxxxxx
<mailto:perette@xxxxxxxxxxx>> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author