xref: /freebsd/contrib/bmake/unit-tests/varmod-select-words.exp (revision 759b177aecbfc49ebc900739954ac56b1aa5fc53)
1make: Invalid modifier ":[]"
2	while evaluating variable "LIST" with value "one two three four five six"
3	in command "@echo 'LIST:[]="${LIST:[]}" is an error'"
4	in target "mod-squarebrackets-empty"
5LIST:[0]="one two three four five six"
6LIST:[0x0]="one two three four five six"
7LIST:[000]="one two three four five six"
8LIST:[*]="one two three four five six"
9LIST:[@]="one two three four five six"
10LIST:[0]:C/ /,/="one,two three four five six"
11LIST:[0]:C/ /,/g="one,two,three,four,five,six"
12LIST:[0]:C/ /,/1g="one,two,three,four,five,six"
13LIST:[*]:C/ /,/="one,two three four five six"
14LIST:[*]:C/ /,/g="one,two,three,four,five,six"
15LIST:[*]:C/ /,/1g="one,two,three,four,five,six"
16LIST:[@]:C/ /,/="one two three four five six"
17LIST:[@]:C/ /,/g="one two three four five six"
18LIST:[@]:C/ /,/1g="one two three four five six"
19LIST:[@]:[0]:C/ /,/="one,two three four five six"
20LIST:[0]:[@]:C/ /,/="one two three four five six"
21LIST:[@]:[*]:C/ /,/="one,two three four five six"
22LIST:[*]:[@]:C/ /,/="one two three four five six"
23EMPTY=""
24EMPTY:[#]="1" == 1 ?
25ESCAPEDSPACE="\ "
26ESCAPEDSPACE:[#]="1" == 1 ?
27REALLYSPACE=" "
28REALLYSPACE:[#]="1" == 1 ?
29LIST:[#]="6"
30LIST:[0]:[#]="1" == 1 ?
31LIST:[*]:[#]="1" == 1 ?
32LIST:[@]:[#]="6"
33LIST:[1]:[#]="1"
34LIST:[1..3]:[#]="3"
35EMPTY:[1]=""
36ESCAPEDSPACE="\ "
37ESCAPEDSPACE:[1]="\ "
38REALLYSPACE=" "
39REALLYSPACE:[1]="" == "" ?
40REALLYSPACE:[*]:[1]=" " == " " ?
41LIST:[1]="one"
42make: Invalid modifier ":[1.]"
43	while evaluating variable "LIST" with value "one two three four five six"
44	in command "@echo 'LIST:[1.]="${LIST:[1.]}" is an error'"
45	in target "mod-squarebrackets-n-error-1"
46make: Extra text after "[1]"
47	while evaluating variable "LIST" with value "one two three four five six"
48	in command "@echo 'LIST:[1].="${LIST:[1].}" is an error'"
49	in target "mod-squarebrackets-n-error-2"
50LIST:[2]="two"
51LIST:[6]="six"
52LIST:[7]=""
53LIST:[999]=""
54make: Invalid modifier ":[-]"
55	while evaluating variable "LIST" with value "one two three four five six"
56	in command "@echo 'LIST:[-]="${LIST:[-]}" is an error'"
57	in target "mod-squarebrackets-n-error-3"
58make: Invalid modifier ":[--]"
59	while evaluating variable "LIST" with value "one two three four five six"
60	in command "@echo 'LIST:[--]="${LIST:[--]}" is an error'"
61	in target "mod-squarebrackets-n-error-4"
62LIST:[-1]="six"
63LIST:[-2]="five"
64LIST:[-6]="one"
65LIST:[-7]=""
66LIST:[-999]=""
67LONGLIST:[17]="17"
68LONGLIST:[0x11]="17"
69LONGLIST:[021]="17"
70LIST:[0]:[1]="one two three four five six"
71LIST:[*]:[1]="one two three four five six"
72LIST:[@]:[1]="one"
73LIST:[0]:[2]=""
74LIST:[*]:[2]=""
75LIST:[@]:[2]="two"
76LIST:[*]:C/ /,/:[2]=""
77LIST:[*]:C/ /,/:[*]:[2]=""
78LIST:[*]:C/ /,/:[@]:[2]="three"
79LONGLIST:[012..0x12]="10 11 12 13 14 15 16 17 18"
80make: Invalid modifier ":[1.]"
81	while evaluating variable "LIST" with value "one two three four five six"
82	in command "@echo 'LIST:[1.]="${LIST:[1.]}" is an error'"
83	in target "mod-squarebrackets-start-end-error-1"
84make: Invalid modifier ":[1..]"
85	while evaluating variable "LIST" with value "one two three four five six"
86	in command "@echo 'LIST:[1..]="${LIST:[1..]}" is an error'"
87	in target "mod-squarebrackets-start-end-error-2"
88make: Invalid modifier ":[1.. ]"
89	while evaluating variable "LIST" with value "one two three four five six"
90	in command "@echo 'LIST:[1.. ]="${LIST:[1.. ]}" is an error'"
91	in target "mod-squarebrackets-start-end-error-3"
92LIST:[1..1]="one"
93make: Invalid modifier ":[1..1.]"
94	while evaluating variable "LIST" with value "one two three four five six"
95	in command "@echo 'LIST:[1..1.]="${LIST:[1..1.]}" is an error'"
96	in target "mod-squarebrackets-start-end-error-4"
97LIST:[1..2]="one two"
98LIST:[2..1]="two one"
99LIST:[3..-2]="three four five"
100LIST:[-4..4]="three four"
101make: Invalid modifier ":[0..1]"
102	while evaluating variable "LIST" with value "one two three four five six"
103	in command "@echo 'LIST:[0..1]="${LIST:[0..1]}" is an error'"
104	in target "mod-squarebrackets-start-end-error-5"
105make: Invalid modifier ":[-1..0]"
106	while evaluating variable "LIST" with value "one two three four five six"
107	in command "@echo 'LIST:[-1..0]="${LIST:[-1..0]}" is an error'"
108	in target "mod-squarebrackets-start-end-error-6"
109LIST:[-1..1]="six five four three two one"
110LIST:[0..0]="one two three four five six"
111LIST:[3..99]="three four five six"
112LIST:[-3..-99]="four three two one"
113LIST:[-99..-3]="one two three four"
114HASH="#" == "#" ?
115LIST:[${HASH}]="6"
116LIST:[${ZERO}]="one two three four five six"
117LIST:[${ZERO}x${ONE}]="one"
118LIST:[${ONE}]="one"
119LIST:[${MINUSONE}]="six"
120LIST:[${STAR}]="one two three four five six"
121LIST:[${AT}]="one two three four five six"
122make: Invalid modifier ":[]"
123	while evaluating variable "LIST" with value "one two three four five six"
124	in command "@echo 'LIST:[$${EMPTY}]="${LIST:[${EMPTY}]}" is an error'"
125	in target "mod-squarebrackets-nested-error-1"
126LIST:[${LONGLIST:[21]:S/2//}]="one"
127LIST:[${LIST:[#]}]="six"
128LIST:[${LIST:[${HASH}]}]="six"
129LIST:[  -1..   +3]="six five four three"
130LIST:S/ /,/="one two three four five six"
131LIST:S/ /,/W="one,two three four five six"
132LIST:S/ /,/gW="one,two,three,four,five,six"
133EMPTY:S/^/,/=","
134EMPTY:S/^/,/W=","
135LIST:C/ /,/="one two three four five six"
136LIST:C/ /,/W="one,two three four five six"
137LIST:C/ /,/gW="one,two,three,four,five,six"
138EMPTY:C/^/,/=","
139EMPTY:C/^/,/W=","
140LIST:tW="one two three four five six"
141LIST:tw="one two three four five six"
142LIST:tW:C/ /,/="one,two three four five six"
143LIST:tW:C/ /,/g="one,two,three,four,five,six"
144LIST:tW:C/ /,/1g="one,two,three,four,five,six"
145LIST:tw:C/ /,/="one two three four five six"
146LIST:tw:C/ /,/g="one two three four five six"
147LIST:tw:C/ /,/1g="one two three four five six"
148LIST:tw:tW:C/ /,/="one,two three four five six"
149LIST:tW:tw:C/ /,/="one two three four five six"
150exit status 2
151