diff options
Diffstat (limited to 'unit-tests/varmod-tail.mk')
-rw-r--r-- | unit-tests/varmod-tail.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/unit-tests/varmod-tail.mk b/unit-tests/varmod-tail.mk new file mode 100644 index 000000000000..a8078cc67335 --- /dev/null +++ b/unit-tests/varmod-tail.mk @@ -0,0 +1,9 @@ +# $NetBSD: varmod-tail.mk,v 1.3 2020/08/23 15:09:15 rillig Exp $ +# +# Tests for the :T variable modifier, which returns the basename of each of +# the words in the variable value. + +all: +.for path in a/b/c def a.b.c a.b/c a a.a .gitignore a a.a + @echo "tail (basename) of '"${path:Q}"' is '"${path:T:Q}"'" +.endfor |