Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: locals remove setopt autonamedirs
- X-seq: zsh-workers 54310
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: Charles Blake <charlechaud@xxxxxxxxx>
- Subject: Re: BUG: locals remove setopt autonamedirs
- Date: Tue, 7 Apr 2026 09:47:27 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tGeCrd7YXSCxDrK4B57FlMO15FTIMtyQ1oKrb/KhPfk=; fh=3PdkGlQD/kP8EZPFoSL7zXkeN2iADFyjfFfbi2AuVTo=; b=JjfKVww3NKwKw6TwwG2ccHA7xXwtLIIN8vy15j+PHh4AJ/qs01RKsWmcvFuuHtSRma c2KCMrambS5G6c9QlKOSUfQJVgs5g7vux1q80E5qgpUkrmBJoKQtiqKU687wEik4CYEB VFEWBb09kCga7BV6wqQTOWKTel9/04DZ/72ew+wXv3qdZiQaMfn8ntWuBOt2gPMLO3QW wKrwXzZBkQpl+FiLZ+qHDnL1izDrtmZcdrFRwowzNjn7Z1V+Sl5hArUhW08PNa2szyRT xlzInCMg3Jd7uVtK3tARefPks/BAiPiMnCGWgGl9W+jAPuiipPUt5ODswPytTh/elqow hTAg==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1775580459; cv=none; d=google.com; s=arc-20240605; b=LwzapDpuWAd2oE7LR+559zYR2Z1Hnr0eHyEREK5gmGvMoUEUETaVqCZTzCRaL6zzDa pLNfef0RH/nemr34CWivN+aDdvyD4fNXKMz+52TgFzAsISS8mJ7cn/lx5g94n54/0VSi sobyKXutxzm3/K2I+A4SGbFZnrjRXBUNcvTddl6NCEqCWiShtoODy/ag4e9A84RHnQcd utbGC8pr/a1HKMk4lU5Yxz6S2aTlr9pjXVbOkSFDqlUJVXajcdMk6KGITDecNAld7KNH DRd5MS0dLmElXGcm2il4Ily9w3BZvAGwzO3/+YV8FtFnmfDdIH/OehSDBthQ2i0RIfSw AljQ==
- Archived-at: <https://zsh.org/workers/54310>
- In-reply-to: <CAGdYchtOPsn0=71A4frqopNyRU4m35izZWzttNqceXpsRTLpeQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAKiz1a_8twDjS7PdLDBfeWbk3VnhQkjg5vDcr-HUtpHw67AKBQ@mail.gmail.com> <CAH+w=7aFZSbPHHcWMmNzUWUjtFD9-SkPj5z9a7QARJqzzepbYQ@mail.gmail.com> <CAKiz1a9TG5u4LDd7BbLBVj3Pw3MOAmj6OUe65xt1nLPsgEEu2A@mail.gmail.com> <CAHYJk3QTffbmgHZrtN6RBH7rDJ5nzND=kW7DOreA0aKVp-FooQ@mail.gmail.com> <CAGdYchtOPsn0=71A4frqopNyRU4m35izZWzttNqceXpsRTLpeQ@mail.gmail.com>
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