xref: /freebsd/contrib/bmake/unit-tests/varname-dot-suffixes.exp (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1Global: delete .SUFFIXES (not found)
2Global: .MAKEFLAGS =  -r -k -d v -d
3Global: .MAKEFLAGS =  -r -k -d v -d 0
4Global: .SUFFIXES = set ignored (read-only)
5Global: .SUFFIXES = append ignored (read-only)
6Global: _ = # (empty)
7Var_Parse: ${.SUFFIXES::=assign} (eval-keep-dollar-and-undefined)
8Evaluating modifier ${.SUFFIXES::...} on value ".c .o .1 .err .tar.gz" (eval-keep-dollar-and-undefined, regular)
9Modifier part: "assign"
10Global: .SUFFIXES = assign ignored (read-only)
11Result of ${.SUFFIXES::=assign} is "" (eval-keep-dollar-and-undefined, regular)
12Global: _ = # (empty)
13Var_Parse: ${preserve:L:_=.SUFFIXES} (eval-keep-dollar-and-undefined)
14Evaluating modifier ${preserve:L} on value "" (eval-keep-dollar-and-undefined, undefined)
15Result of ${preserve:L} is "preserve" (eval-keep-dollar-and-undefined, defined)
16Evaluating modifier ${preserve:_...} on value "preserve" (eval-keep-dollar-and-undefined, defined)
17Global: .SUFFIXES = preserve ignored (read-only)
18Result of ${preserve:_=.SUFFIXES} is "preserve" (eval-keep-dollar-and-undefined, defined)
19Global: _ = preserve
20Global: .MAKEFLAGS =  -r -k -d v -d 0 -d v -d
21Global: .MAKEFLAGS =  -r -k -d v -d 0 -d v -d 0
22Var_Parse: ${1 2:L:@.SUFFIXES@${.SUFFIXES}@} != ".c .o .1 .err .tar.gz .c .o .1 .err .tar.gz" (eval-defined)
23Evaluating modifier ${1 2:L} on value "" (eval-defined, undefined)
24Result of ${1 2:L} is "1 2" (eval-defined, defined)
25Evaluating modifier ${1 2:@...} on value "1 2" (eval-defined, defined)
26Modifier part: ".SUFFIXES"
27Modifier part: "${.SUFFIXES}"
28ModifyWords: split "1 2" into 2 words
29Command: .SUFFIXES = 1 ignored (read-only)
30Var_Parse: ${.SUFFIXES} (eval-defined)
31ModifyWord_Loop: in "1", replace ".SUFFIXES" with "${.SUFFIXES}" to ".c .o .1 .err .tar.gz"
32Command: .SUFFIXES = 2 ignored (read-only)
33Var_Parse: ${.SUFFIXES} (eval-defined)
34ModifyWord_Loop: in "2", replace ".SUFFIXES" with "${.SUFFIXES}" to ".c .o .1 .err .tar.gz"
35Command: delete .SUFFIXES (not found)
36Result of ${1 2:@.SUFFIXES@${.SUFFIXES}@} is ".c .o .1 .err .tar.gz .c .o .1 .err .tar.gz" (eval-defined, defined)
37Global: .MAKEFLAGS =  -r -k -d v -d 0 -d v -d 0 -d v -d
38Global: .MAKEFLAGS =  -r -k -d v -d 0 -d v -d 0 -d v -d 0
39exit status 0
40