Module Name: src
Committed By: rillig
Date: Mon Nov 9 20:57:36 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: sh-leading-at.exp sh-leading-at.mk
Log Message:
make(1): add test for repeating the leading '@' in shell commands
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/sh-leading-at.exp
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/sh-leading-at.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/sh-leading-at.exp
diff -u src/usr.bin/make/unit-tests/sh-leading-at.exp:1.2 src/usr.bin/make/unit-tests/sh-leading-at.exp:1.3
--- src/usr.bin/make/unit-tests/sh-leading-at.exp:1.2 Sat Aug 22 09:16:08 2020
+++ src/usr.bin/make/unit-tests/sh-leading-at.exp Mon Nov 9 20:57:36 2020
@@ -2,4 +2,5 @@ ok
space after @
echo 'echoed'
echoed
+3
exit status 0
Index: src/usr.bin/make/unit-tests/sh-leading-at.mk
diff -u src/usr.bin/make/unit-tests/sh-leading-at.mk:1.3 src/usr.bin/make/unit-tests/sh-leading-at.mk:1.4
--- src/usr.bin/make/unit-tests/sh-leading-at.mk:1.3 Sat Aug 22 09:16:08 2020
+++ src/usr.bin/make/unit-tests/sh-leading-at.mk Mon Nov 9 20:57:36 2020
@@ -1,4 +1,4 @@
-# $NetBSD: sh-leading-at.mk,v 1.3 2020/08/22 09:16:08 rillig Exp $
+# $NetBSD: sh-leading-at.mk,v 1.4 2020/11/09 20:57:36 rillig Exp $
#
# Tests for shell commands preceded by an '@', to suppress printing
# the command to stdout.
@@ -8,3 +8,6 @@ all:
@echo 'ok'
@ echo 'space after @'
echo 'echoed'
+ # The leading '@' can be repeated.
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ @@@echo '3'