Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh: corrupt history file



On 7/29/20 11:15 AM, Perette Barella wrote:
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:

exporting most shell variables commonly used among shells result in that kind of weirdness.

another one people (mis)commonly export is PS1. i don't think adding such an warning to each
variable would yield much of a result when people seem to think that using export is required
to set variables, ignorant of the differences in environment variables and shell variables.



Messages sorted by: Reverse Date, Date, Thread, Author