[Bug 285726] make: AT&T/SysV-style substitution error if the pattern starts with 't'

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 28 Mar 2025 18:32:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285726

--- Comment #2 from Tavian Barnes <tavianator@tavianator.com> ---
> A sysV style modifier can be mistaken for any of bmake's other modifiers,
> a possible tweak to address this has collateral fallout - needs to be assessed.

True, I see that ${@:M%=b%} treats `%=b%` as a pattern rather than doing the
substitution.

That's a pretty gnarly ambiguity.  At least the :t ones could look ahead for an
`=` or something, but something like this looks impossible to me:

    ${@:S/%.c=O/%/g}

Is that

    S / %.c=O / % /g

or

    S/%.c = O/%/g

?

-- 
You are receiving this mail because:
You are the assignee for the bug.