Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests make(1): add a test for deeply neste...



details:   https://anonhg.NetBSD.org/src/rev/dc59ef5d7f86
branches:  trunk
changeset: 936610:dc59ef5d7f86
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Jul 31 20:16:21 2020 +0000

description:
make(1): add a test for deeply nested brace dependency

diffstat:

 usr.bin/make/unit-tests/dir.exp |  1 +
 usr.bin/make/unit-tests/dir.mk  |  8 +++++++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 86043a69eff5 -r dc59ef5d7f86 usr.bin/make/unit-tests/dir.exp
--- a/usr.bin/make/unit-tests/dir.exp   Fri Jul 31 20:08:08 2020 +0000
+++ b/usr.bin/make/unit-tests/dir.exp   Fri Jul 31 20:16:21 2020 +0000
@@ -15,4 +15,5 @@
 extract
 extract-post
 dup-1
+single-word
 exit status 0
diff -r 86043a69eff5 -r dc59ef5d7f86 usr.bin/make/unit-tests/dir.mk
--- a/usr.bin/make/unit-tests/dir.mk    Fri Jul 31 20:08:08 2020 +0000
+++ b/usr.bin/make/unit-tests/dir.mk    Fri Jul 31 20:16:21 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dir.mk,v 1.3 2020/07/31 20:08:08 rillig Exp $
+# $NetBSD: dir.mk,v 1.4 2020/07/31 20:16:21 rillig Exp $
 #
 # Tests for dir.c.
 
@@ -50,3 +50,9 @@
 
 dup-1:
        @echo $@
+
+# Other than in Bash, the braces are also expanded if there is no comma.
+all: {{{{{{{{{{single-word}}}}}}}}}}
+
+single-word:
+       @echo $@



Home | Main Index | Thread Index | Old Index