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

Re: zsh: corrupt history file



Eric Cook wrote on Wed, 29 Jul 2020 11:21 -0400:
> another one people (mis)commonly export is PS1. i don't think adding such an warning to each
> variable

I guess you mean adding such warnings to zshparam(1)?  In which case,
perhaps adding them to bin_typeset() would be more effective?  As in:

% export HISTORY=foo
zsh:1: warning: $HISTORY should not be exported; use 'typeset HISTORY=foo' instead

(and if someone actually needs to export $HISTORY for whatever reason,
we can make -h suppress the warning)

> 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