Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: 'export FOO' not idempotent
On Mon, Jun 27, 2022 at 11:44 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
> https://www.zsh.org/mla/workers/2020/msg01350.html
>
> It was resolved in zsh 5.9 with the introduction of the TYPESET_TO_UNSET
> option, but as per workers/47545, "[t]his is a long standing feature
> of zsh, so the default behaviour is not going to change."
>
> https://www.zsh.org/mla/workers/2020/msg01364.html
It's odd that `export FOO` doesn't have the same effect as `repeat 2
export FOO` when TYPESET_TO_UNSET is not in effect. Would it make more
sense for the first command to have the same effect as the second?
Another oddity that suggests the same resolution:
% export FOO
% typeset -p FOO
% export FOO=''
% env | grep FOO
%
Either `export FOO` is doing something weird or `typeset p FOO` is lying.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author