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

Re: BUG: locals remove setopt autonamedirs



On Tue, Apr 7, 2026 at 9:33 AM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> Here is a patch that restricts AND to global parameters

I don't strongly object to this, but I'm not particularly in favor of it either.

I'm firmly of the opinion that this is entirely Charles' "bug", not
zsh's.  He should not be using both autonamedirs and `hash -d` at the
same time.  The latter is IMO intended for enabling the named
directories feature without forcing you to map parameters into the
table.  Also enabling automatic parameter mapping is simply asking for
it to break.

However, I'm in favor of including noautonamedirs in the completion
options, I was surprised to realize it was not there already.  Note
this is desirable regardless of which way we go with Philippe's patch,
because a completion function might use `typeset -g` to pass state
from one iteration to the next.




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