1 # $NetBSD: varmod-match-escape.mk,v 1.1 2020/08/16 20:03:53 rillig Exp $
3 # As of 2020-08-01, the :M and :N modifiers interpret backslashes differently,
4 # depending on whether there was a variable expression somewhere before the
5 # first backslash or not. See ApplyModifier_Match, "copy = TRUE".
7 # Apart from the different and possibly confusing debug output, there is no
8 # difference in behavior. When parsing the modifier text, only \{, \} and \:
9 # are unescaped, and in the pattern matching these have the same meaning as
10 # their plain variants '{', '}' and ':'. In the pattern matching from
11 # Str_Match, only \*, \? or \[ would make a noticeable difference.
12 SPECIALS= \: : \\ * \*
14 .if ${SPECIALS:M${:U}\:} != ${SPECIALS:M\:${:U}}