Re: (#i) curiosity
"Mark J. Reed" <[email protected]> Thu, 9 Apr 2026 15:19:41 -0400
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAA=-s3z_6Sh=B10fvva1sAXbGdh4AKmRbc4XxKb-gnAmp+QfmA@mail.gmail.com> |
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. On Thu, Apr 9, 2026 at 1:51 PM Ray Andrews <[email protected]> wrote: > 4 /aWorking/Zsh/Source/Wk 4 % ls -AFrGgdt zzz > ls: cannot access 'zzz': No such file or directory > > 4 /aWorking/Zsh/Source/Wk 4 % ls -AFrGgdt (#i)zzz > drwxr-xr-x 16 20480 Apr 9 10:38 ./ > > I'm expecting the (#i) to test for case, but it seems to send something to > 'ls' even when there's no match. Pretty trivial issue, but can that be > fixed? I mean so that ls would report No such ... ? I think I recall a > similar issue years ago and that there was a fix. > -- Mark J. Reed <[email protected]>