Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2025 18:32:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 285726] make: AT&T/SysV-style substitution error if the pattern starts with 't'
Message-ID:  <bug-285726-227-V9ADtB8yXI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-285726-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-285726-227-V9ADtB8yXI>