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 test for repeating the ...
details: https://anonhg.NetBSD.org/src/rev/99849596aaee
branches: trunk
changeset: 956903:99849596aaee
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Nov 09 20:57:36 2020 +0000
description:
make(1): add test for repeating the leading '@' in shell commands
diffstat:
usr.bin/make/unit-tests/sh-leading-at.exp | 1 +
usr.bin/make/unit-tests/sh-leading-at.mk | 5 ++++-
2 files changed, 5 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r bba489b6bc28 -r 99849596aaee usr.bin/make/unit-tests/sh-leading-at.exp
--- a/usr.bin/make/unit-tests/sh-leading-at.exp Mon Nov 09 20:50:56 2020 +0000
+++ b/usr.bin/make/unit-tests/sh-leading-at.exp Mon Nov 09 20:57:36 2020 +0000
@@ -2,4 +2,5 @@
space after @
echo 'echoed'
echoed
+3
exit status 0
diff -r bba489b6bc28 -r 99849596aaee usr.bin/make/unit-tests/sh-leading-at.mk
--- a/usr.bin/make/unit-tests/sh-leading-at.mk Mon Nov 09 20:50:56 2020 +0000
+++ b/usr.bin/make/unit-tests/sh-leading-at.mk Mon Nov 09 20:57:36 2020 +0000
@@ -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 @@
@echo 'ok'
@ echo 'space after @'
echo 'echoed'
+ # The leading '@' can be repeated.
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ @@@echo '3'
Home |
Main Index |
Thread Index |
Old Index