Re: A question about filename generate
Bart Schaefer <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAH+w=7bEvum4h01KhPSk6cX5Hx8z7JZHpe6qkYheaME_4sbhjQ@mail.gmail.com> |
On Sun, Jul 27, 2025 at 10:36 AM Mikael Magnusson <[email protected]> wrote: > > On Sun, Jul 27, 2025 at 7:26 AM safreya <[email protected]> wrote: > > > > 1. The first ** expansion include index.tex > > 2. The second ** expansion not > > > > Why? > > in x~y, the x is a glob pattern, but y is a string pattern. **/ is > only special in globbing where it is a shorthand for (*/)#. So, in case it wasn't obvious, in **/*~**/*.tex the matches after the ~ MUST include a slash, which "index.tex" does not.