[Bug 285726] make: AT&T/SysV-style substitution error if the pattern starts with 't'
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285726] make: AT&T/SysV-style substitution error if the pattern starts with 't'"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285726] make: AT&T/SysV-style substitution error if the pattern starts with 't'"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285726] make: AT&T/SysV-style substitution error if the pattern starts with 't'"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285726] make: AT&T/SysV-style substitution error if the pattern starts with 't'"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Mar 2025 13:47:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285726
Bug ID: 285726
Summary: make: AT&T/SysV-style substitution error if the
pattern starts with 't'
Product: Base System
Version: 14.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: tavianator@tavianator.com
The ${VAR:pattern%.o=replacement%.c} variable modifier syntax is very useful
for portable makefiles because GNU make supports the same syntax. But I just
noticed a bug: if the pattern starts with 't', make prints an error rather than
performing the substitution. I think the parser is looking for one of the :t
modifiers (:tl, :tu, etc.)
$ cat Makefile
foo:
@echo ${@:f%=b%}
test:
@echo ${@:t%=b%}
$ make foo
boo
$ make test
make: Bad modifier ":t%=b%" for variable "@"
=b%}
--
You are receiving this mail because:
You are the assignee for the bug.