Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A question about filename generate
- X-seq: zsh-users 30332
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: A question about filename generate
- Date: Sun, 27 Jul 2025 11:29:00 -0700
- Archived-at: <https://zsh.org/users/30332>
- In-reply-to: <CAHYJk3TYV=UnODAB7gd059wGX=0ebe9BqP0EGCbxxiq2HrdpDA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <tencent_69AD6695B9D82E219704D6455D01C5D08A05@qq.com> <CAHYJk3TYV=UnODAB7gd059wGX=0ebe9BqP0EGCbxxiq2HrdpDA@mail.gmail.com>
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