Module Name: src
Committed By: rillig
Date: Fri Jul 3 19:29:25 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: sysv.exp sysv.mk
Log Message:
make(1): add another test for the SysV :%=% modifier
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/sysv.exp
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/sysv.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/sysv.exp
diff -u src/usr.bin/make/unit-tests/sysv.exp:1.3 src/usr.bin/make/unit-tests/sysv.exp:1.4
--- src/usr.bin/make/unit-tests/sysv.exp:1.3 Wed May 6 02:30:10 2020
+++ src/usr.bin/make/unit-tests/sysv.exp Fri Jul 3 19:29:25 2020
@@ -12,4 +12,5 @@ asam.c.c
asam.c
a.c.c
+ax:Q b c d eb
exit status 0
Index: src/usr.bin/make/unit-tests/sysv.mk
diff -u src/usr.bin/make/unit-tests/sysv.mk:1.4 src/usr.bin/make/unit-tests/sysv.mk:1.5
--- src/usr.bin/make/unit-tests/sysv.mk:1.4 Wed May 6 02:30:10 2020
+++ src/usr.bin/make/unit-tests/sysv.mk Fri Jul 3 19:29:25 2020
@@ -1,4 +1,4 @@
-# $Id: sysv.mk,v 1.4 2020/05/06 02:30:10 christos Exp $
+# $Id: sysv.mk,v 1.5 2020/07/03 19:29:25 rillig Exp $
FOO ?=
FOOBAR = ${FOO:=bar}
@@ -11,7 +11,7 @@ FUN = ${B}${S}fun
SUN = the Sun
# we expect nothing when FOO is empty
-all: foo fun sam bla
+all: foo fun sam bla words
foo:
@echo FOOBAR = ${FOOBAR}
@@ -41,3 +41,8 @@ BLA=
bla:
@echo $(BLA:%=foo/%x)
+
+# The :Q looks like a modifier but isn't.
+# It is part of the replacement string.
+words:
+ @echo a${a b c d e:L:%a=x:Q}b