bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static pattern rules with more than one '%'


From: Dmitry Goncharov
Subject: Re: Static pattern rules with more than one '%'
Date: Wed, 30 Aug 2023 16:20:06 -0400



On Tuesday, August 29, 2023, Alejandro Colomar <alx@kernel.org> wrote:
Hi Paul,

On 2023-08-29 14:45, Paul Smith wrote:
> On Tue, 2023-08-29 at 11:32 +0200, Alejandro Colomar wrote:
>> Am I missing something?  Is something like that allowed anyhow?
>
> Multiple "%" are allowed, in that they won't throw an error.  But, only
> the first "%" is replaced.  The second (and subsequent) "%" are just
> normal characters, not pattern matching.

Thanks!  That was my expectation before reading the docs.  Maybe you
could reword it to be explicit that only one % is used as a wildcard.

Good morning.

The same paragraph says that after matching % the rest of the name must match exactly.
However, be careful if you want to rely on this. We fixed it just recently. 4.3 and earlier would replace all %,

Regards, Dmitry


 
Cheers,
Alex

--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5


reply via email to

[Prev in Thread] Current Thread [Next in Thread]