Re: (#i) curiosity
Ray Andrews <[email protected]> Thu, 9 Apr 2026 13:13:06 -0700
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <[email protected]> |
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.