Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug on parameter expansion when set -u is in effect
- X-seq: zsh-workers 54177
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Mark J. Reed" <markjreed@xxxxxxxxx>
- Cc: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Bug on parameter expansion when set -u is in effect
- Date: Thu, 5 Feb 2026 18:13:14 -0800
- 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=AR01noELMOGTdhXpLpWTpHHGQLyj41dpDzllSMTq5W0=; fh=NTLsqEwr4el9WhWHHnKgWFckRX/7mVXYVN8+w7qxjWQ=; b=Sf5gux8YbFu3uhaAs8Y15tSFsWBzxyThQMMxYA8qTKO2X/rfWjnQOoCxTIF2sFh2GV rvYhTCxlVKvUdAENDHGJlaAA3O5V5RTeZVYfraTU+5o+lUr26saZgSbSj31iD/8xezhr sU+NUmZgJN2oduXh9QjqRCbSos7Q9RmYlYrRTy0Xac275x1g7joFilHWnY+LvervazVK /eh6QsxXnmxoGUEdlJ9WwGv0GheJF7nlpiva7Ti1MttWD+tT36pyTOVCu4N0FDi4o2W1 ijBoVsHt06VnWhsDmZ2hiby/cjkH5VpBy/RxCIwTyKF/F8jFY+zomcY0uX35mtdqQQ0V 7Ikw==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1770344006; cv=none; d=google.com; s=arc-20240605; b=XKVODsyI39Q5lrhlER4IRAk4Y9iVDbIxXZVxq89tm8ljHgjVDjKmqOyIO44EeNqju6 nVqXCyVWdGyddiFKcGpp94flkx+46Uk1RTYzUL89VtXB/6gUkt5OgOYlZYJ/24Zn35mM ZPfZsaeEjWg2lHU6pnHW2Zl/aUxDerl2dImDOHdgKfpWeV1/EgVy2xTwko38UkPrsJwI /7bGWA9/Gl/Ap58yjMdJ1NxQ97tZ978g3xV5tgyKaEXb7USvM9lcwUcAtzIXQIlE5lRh JfQQR6es1b2AnulxU/Yv4Ro1u5cIDtYFD5wlegtRvWikFN1pjPWQiJ7shd3msPo2S+0S vC3w==
- Archived-at: <https://zsh.org/workers/54177>
- In-reply-to: <CAA=-s3zQbOs9D9stZCqcwuDT1-DbjReMeomQTA=0WiuddadqqQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <c0faa0a6-4b7d-4820-9add-ca1c99e2aef6@app.fastmail.com> <CAHYJk3Ts8syjqjpVP5=AQ_atJUzcgFvcV7idsj_M2PTE++AF5g@mail.gmail.com> <cb743d46-6644-41cc-b6ad-aef0583b62e0@app.fastmail.com> <1755771179.593394.1770300669325@mail.virginmedia.com> <CAA=-s3zQbOs9D9stZCqcwuDT1-DbjReMeomQTA=0WiuddadqqQ@mail.gmail.com>
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