make(1): add another test case for mod-subst-dollar
Having only 8 dollar signs does not prove anything. It might still be the result of 3 substitutions in a row. Having 5 substitutions in a row is less likely though.
This commit is contained in:
parent
c68da31cf3
commit
8f9a497161
|
@ -54,6 +54,7 @@ mod-subst-dollar:$5:
|
|||
mod-subst-dollar:$6:
|
||||
mod-subst-dollar:$7:
|
||||
mod-subst-dollar:$8:
|
||||
mod-subst-dollar:$40:
|
||||
mod-subst-dollar:U8:
|
||||
mod-subst-dollar:$$$$:
|
||||
mod-loop-dollar:1:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: modmisc.mk,v 1.36 2020/08/08 13:09:55 rillig Exp $
|
||||
# $Id: modmisc.mk,v 1.37 2020/08/09 07:18:03 rillig Exp $
|
||||
#
|
||||
# miscellaneous modifier tests
|
||||
|
||||
|
@ -216,6 +216,7 @@ mod-subst-dollar:
|
|||
@echo $@:${:U6:S,^,$$$$$$,:Q}:
|
||||
@echo $@:${:U7:S,^,$$$$$$$,:Q}:
|
||||
@echo $@:${:U8:S,^,$$$$$$$$,:Q}:
|
||||
@echo $@:${:U40:S,^,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,:Q}:
|
||||
# This generates no dollar at all:
|
||||
@echo $@:${:UU8:S,^,${:U$$$$$$$$},:Q}:
|
||||
# Here is an alternative way to generate dollar characters.
|
||||
|
|
Loading…
Reference in New Issue