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 usr.bin/make: fix typo in dollar test
details: https://anonhg.NetBSD.org/src/rev/b366a0ef255e
branches: trunk
changeset: 932517:b366a0ef255e
user: rillig <rillig%NetBSD.org@localhost>
date: Sun May 10 13:03:40 2020 +0000
description:
usr.bin/make: fix typo in dollar test
diffstat:
usr.bin/make/unit-tests/dollar.exp | 4 ++--
usr.bin/make/unit-tests/dollar.mk | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 5241044c782f -r b366a0ef255e usr.bin/make/unit-tests/dollar.exp
--- a/usr.bin/make/unit-tests/dollar.exp Sun May 10 12:42:11 2020 +0000
+++ b/usr.bin/make/unit-tests/dollar.exp Sun May 10 13:03:40 2020 +0000
@@ -15,8 +15,8 @@
4 dollar variable => <$$>
Some hungry part of make eats all the dollars after a :U modifier.
1 dollar var-default => <>
- 2 dollar var-default => <>
- 4 dollar var-default => <>
+ 2 dollar var-default => <$>
+ 4 dollar var-default => <$$>
Dollar in :S pattern
diff -r 5241044c782f -r b366a0ef255e usr.bin/make/unit-tests/dollar.mk
--- a/usr.bin/make/unit-tests/dollar.mk Sun May 10 12:42:11 2020 +0000
+++ b/usr.bin/make/unit-tests/dollar.mk Sun May 10 13:03:40 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dollar.mk,v 1.1 2020/05/10 12:34:01 rillig Exp $
+# $NetBSD: dollar.mk,v 1.2 2020/05/10 13:03:40 rillig Exp $
#
# Test the various places where a dollar character can appear and
# see what happens. There are lots of surprises here.
@@ -38,9 +38,9 @@
$T '4 dollar variable' ''${DOLLAR4:Q}
$C 'Some hungry part of make eats all the dollars after a :U modifier.'
- $T '1 dollar var-default' ''${U:${DOLLAR1}:Q}
- $T '2 dollar var-default' ''${U:${DOLLAR2}:Q}
- $T '4 dollar var-default' ''${U:${DOLLAR4}:Q}
+ $T '1 dollar var-default' ''${:U${DOLLAR1}:Q}
+ $T '2 dollar var-default' ''${:U${DOLLAR2}:Q}
+ $T '4 dollar var-default' ''${:U${DOLLAR4}:Q}
$H 'Dollar in :S pattern'
Home |
Main Index |
Thread Index |
Old Index