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

Re: A question about filename generate



On Sun, Jul 27, 2025 at 10:36 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> On Sun, Jul 27, 2025 at 7:26 AM safreya <safreya@xxxxxx> 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.




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