Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (#i) curiosity
- X-seq: zsh-users 30513
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: (#i) curiosity
- Date: Thu, 9 Apr 2026 13:13:06 -0700
- Archived-at: <https://zsh.org/users/30513>
- In-reply-to: <CAA=-s3z_6Sh=B10fvva1sAXbGdh4AKmRbc4XxKb-gnAmp+QfmA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <6efd66ad-b46f-407c-b04c-3cfcfddbb03d@eastlink.ca> <CAA=-s3z_6Sh=B10fvva1sAXbGdh4AKmRbc4XxKb-gnAmp+QfmA@mail.gmail.com>
On 2026-04-09 12:19, Mark J. Reed wrote:
What are your shell options? `(#i)zzz` gets me a "zsh: no matches
found" if such a file does not exist. So I suspect you have
`nullglob` set. In which case, `(#i)zzz` expands to nothing because
there's no match. Whereas `zzz` by itself is _not a glob_, so the
option has no effect; it is passed unchanged to `ls`, which then
notices that it doesn't exist.
I'm paranoid to change my config options, but yeah, I have nullglob
set. Geez ... I was sure there was some flag or other that fixed that.
Or ... should I unset? I'm not at all sure why I'd want one or the
other. The idea that when there is no match, somehow 'nullglob' still
returns something (what?) to ls unclear. I take it that './' is the
current directory. I could unset in this function, or I could unset at
the shell level and set the option wherever It might be needed, wherever
that might be. Or am I remembering something to the effect that
sometimes 'nothing' is not an option -- you need a placeholder to keep
args disciplined -- something like that? Not sure, open to advice.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author