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

Re: A question about filename generate



hello,

On Sun, Jul 27, 2025 at 07:23:22AM -0500, Perry Smith wrote:
> Sorry… I’m confused.

Sorry I forgot to mention about my zsh defaults:

setopt noextendedglob noglobstarshort
print -l **~*.tex(.)

zsh: no matches found: **~*.tex(.)

setopt extendedglob noglobstarshort
print -l **~*.tex(.)

index.aux
index.log

setopt extendedglob globstarshort
print -l **~*.tex(.)

index.aux
index.log
subdir/filea.aux
subdir/fileb.aux
subdir/filec.aux

> But I’m still confused (surprised) why OPs original pattern did what it did.

I just read the explaination from Mikael and Bart: short and clear.
Isn't it?

-- 
Marc Chantreux

Attachment: signature.asc
Description: PGP signature



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