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

Re: Bug on parameter expansion when set -u is in effect



On Thu, Feb 5, 2026 at 6:27 AM Mark J. Reed <markjreed@xxxxxxxxx> wrote:
>
> I don't have a Monterey system on which to reproduce your exact environment, but with 5.8.1 freshly built from the git tag (albeit running on Tahoe), I can confirm what Mikael and Peter said: your snippet sets v to "a b" without extendedglob, and "b" with extendedglob, irrespective of nounset.

I don't have Monterey any more either, but I dug out an old laptop
with Catalina, and the stock zsh there (5.7) behaves as Mark describes
too.




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