Cross Reference: varmod-defined.exp
xref: /src/usr.bin/make/unit-tests/varmod-defined.exp
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/usr.bin/make/unit-tests/
varmod-defined.exp revision 1.3
1Global:8_DOLLARS = $$$$$$$$
2Global:VAR =
3Var_Parse: ${8_DOLLARS} with VARE_WANTRES|VARE_KEEP_DOLLAR|VARE_KEEP_UNDEF
4Global:VAR = $$$$$$$$
5Var_Parse: ${VAR:D${8_DOLLARS}} with VARE_WANTRES|VARE_KEEP_DOLLAR|VARE_KEEP_UNDEF
6Applying ${VAR:D...} to "$$$$$$$$" (VARE_WANTRES|VARE_KEEP_DOLLAR|VARE_KEEP_UNDEF, none, none)
7Var_Parse: ${8_DOLLARS}} with VARE_WANTRES|VARE_KEEP_DOLLAR|VARE_KEEP_UNDEF
8Result of ${VAR:D${8_DOLLARS}} is "$$$$$$$$" (VARE_WANTRES|VARE_KEEP_DOLLAR|VARE_KEEP_UNDEF, none, none)
9Global:VAR = $$$$$$$$
10Var_Parse: ${VAR:@var@${8_DOLLARS}@} with VARE_WANTRES|VARE_KEEP_DOLLAR|VARE_KEEP_UNDEF
11Applying ${VAR:@...} to "$$$$$$$$" (VARE_WANTRES|VARE_KEEP_DOLLAR|VARE_KEEP_UNDEF, none, none)
12Modifier part: "var"
13Modifier part: "${8_DOLLARS}"
14ModifyWords: split "$$$$$$$$" into 1 words
15Global:var = $$$$$$$$
16Var_Parse: ${8_DOLLARS} with VARE_WANTRES|VARE_KEEP_UNDEF
17ModifyWord_Loop: in "$$$$$$$$", replace "var" with "${8_DOLLARS}" to "$$$$"
18Global:delete var
19Result of ${VAR:@var@${8_DOLLARS}@} is "$$$$" (VARE_WANTRES|VARE_KEEP_DOLLAR|VARE_KEEP_UNDEF, none, none)
20Global:VAR = $$$$
21Global:.MAKEFLAGS =  -r -k -d v -d
22Global:.MAKEFLAGS =  -r -k -d v -d 0
23exit status 0
24

Indexes created Mon Nov 10 17:20:41 GMT 2025