directive-for-escape.exp revision 1.29 1 For: end for 1
2 For: loop body with chars = !"#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~:
3 # expect+2: while evaluating "${:U!"" with value "!"": Unclosed expression, expecting '}' for modifier "U!""
4 # expect+1: !"
5 . info ${:U!"#$%&'()*+,-./0-9\:;<=>?@A-Z[\\]_^a-z{|\}~}
6 make: "directive-for-escape.mk" line 21: while evaluating "${:U!"" with value "!"": Unclosed expression, expecting '}' for modifier "U!""
7 in .for loop from directive-for-escape.mk:18 with chars = !"#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~
8 make: "directive-for-escape.mk" line 21: !"
9 For: end for 1
10 For: loop body with chars = !"\\#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~:
11 # expect+2: while evaluating "${:U!"\\\\" with value "!"\\": Unclosed expression, expecting '}' for modifier "U!"\\\\"
12 # expect+1: !"\\
13 . info ${:U!"\\\\#$%&'()*+,-./0-9\:;<=>?@A-Z[\\]_^a-z{|\}~}
14 make: "directive-for-escape.mk" line 33: while evaluating "${:U!"\\\\" with value "!"\\": Unclosed expression, expecting '}' for modifier "U!"\\\\"
15 in .for loop from directive-for-escape.mk:30 with chars = !"\\#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~
16 make: "directive-for-escape.mk" line 33: !"\\
17 For: end for 1
18 For: loop body with i = $:
19 # expect: . info ${:U\$}
20 # expect+9: $
21 # expect: . info ${:U${V}}
22 # expect+7: value
23 # expect: . info ${:U${V:=-with-modifier}}
24 # expect+5: value-with-modifier
25 # expect: . info ${:U$(V)}
26 # expect+3: value
27 # expect: . info ${:U$(V:=-with-modifier)}
28 # expect+1: value-with-modifier
29 . info ${:U\$}
30 make: "directive-for-escape.mk" line 57: $
31 For: loop body with i = ${V}:
32 # expect: . info ${:U\$}
33 # expect+9: $
34 # expect: . info ${:U${V}}
35 # expect+7: value
36 # expect: . info ${:U${V:=-with-modifier}}
37 # expect+5: value-with-modifier
38 # expect: . info ${:U$(V)}
39 # expect+3: value
40 # expect: . info ${:U$(V:=-with-modifier)}
41 # expect+1: value-with-modifier
42 . info ${:U${V}}
43 make: "directive-for-escape.mk" line 57: value
44 For: loop body with i = ${V:=-with-modifier}:
45 # expect: . info ${:U\$}
46 # expect+9: $
47 # expect: . info ${:U${V}}
48 # expect+7: value
49 # expect: . info ${:U${V:=-with-modifier}}
50 # expect+5: value-with-modifier
51 # expect: . info ${:U$(V)}
52 # expect+3: value
53 # expect: . info ${:U$(V:=-with-modifier)}
54 # expect+1: value-with-modifier
55 . info ${:U${V:=-with-modifier}}
56 make: "directive-for-escape.mk" line 57: value-with-modifier
57 For: loop body with i = $(V):
58 # expect: . info ${:U\$}
59 # expect+9: $
60 # expect: . info ${:U${V}}
61 # expect+7: value
62 # expect: . info ${:U${V:=-with-modifier}}
63 # expect+5: value-with-modifier
64 # expect: . info ${:U$(V)}
65 # expect+3: value
66 # expect: . info ${:U$(V:=-with-modifier)}
67 # expect+1: value-with-modifier
68 . info ${:U$(V)}
69 make: "directive-for-escape.mk" line 57: value
70 For: loop body with i = $(V:=-with-modifier):
71 # expect: . info ${:U\$}
72 # expect+9: $
73 # expect: . info ${:U${V}}
74 # expect+7: value
75 # expect: . info ${:U${V:=-with-modifier}}
76 # expect+5: value-with-modifier
77 # expect: . info ${:U$(V)}
78 # expect+3: value
79 # expect: . info ${:U$(V:=-with-modifier)}
80 # expect+1: value-with-modifier
81 . info ${:U$(V:=-with-modifier)}
82 make: "directive-for-escape.mk" line 57: value-with-modifier
83 For: end for 1
84 For: loop body with i = $:
85 # expect: . info ${:U\$}
86 # expect+6: $
87 # expect: . info ${:U${V}}
88 # expect+4: value
89 # expect+3: value-with-modifier
90 # expect+2: value
91 # expect+1: value-with-modifier
92 . info ${:U\$}
93 make: "directive-for-escape.mk" line 69: $
94 For: loop body with i = ${V}:
95 # expect: . info ${:U\$}
96 # expect+6: $
97 # expect: . info ${:U${V}}
98 # expect+4: value
99 # expect+3: value-with-modifier
100 # expect+2: value
101 # expect+1: value-with-modifier
102 . info ${:U${V}}
103 make: "directive-for-escape.mk" line 69: value
104 For: loop body with i = ${V:=-with-modifier}:
105 # expect: . info ${:U\$}
106 # expect+6: $
107 # expect: . info ${:U${V}}
108 # expect+4: value
109 # expect+3: value-with-modifier
110 # expect+2: value
111 # expect+1: value-with-modifier
112 . info ${:U${V:=-with-modifier}}
113 make: "directive-for-escape.mk" line 69: value-with-modifier
114 For: loop body with i = $(V):
115 # expect: . info ${:U\$}
116 # expect+6: $
117 # expect: . info ${:U${V}}
118 # expect+4: value
119 # expect+3: value-with-modifier
120 # expect+2: value
121 # expect+1: value-with-modifier
122 . info ${:U$(V)}
123 make: "directive-for-escape.mk" line 69: value
124 For: loop body with i = $(V:=-with-modifier):
125 # expect: . info ${:U\$}
126 # expect+6: $
127 # expect: . info ${:U${V}}
128 # expect+4: value
129 # expect+3: value-with-modifier
130 # expect+2: value
131 # expect+1: value-with-modifier
132 . info ${:U$(V:=-with-modifier)}
133 make: "directive-for-escape.mk" line 69: value-with-modifier
134 For: end for 1
135 For: loop body with i = ${UNDEF:U\$\$:
136 # ${:U\${UNDEF\:U\\$\\$}
137 For: loop body with i = {{}}:
138 # ${:U{{\}\}}
139 For: loop body with i = end}:
140 # ${:Uend\}}
141 For: end for 1
142 For: loop body with i = ${UNDEF:U\$\$:
143 # expect+3: ${UNDEF:U\backslash$
144 # expect+2: {{}}
145 # expect+1: end}
146 . info ${:U\${UNDEF\:U\\$\\$}
147 make: "directive-for-escape.mk" line 120: ${UNDEF:U\backslash$
148 For: loop body with i = {{}}:
149 # expect+3: ${UNDEF:U\backslash$
150 # expect+2: {{}}
151 # expect+1: end}
152 . info ${:U{{\}\}}
153 make: "directive-for-escape.mk" line 120: {{}}
154 For: loop body with i = end}:
155 # expect+3: ${UNDEF:U\backslash$
156 # expect+2: {{}}
157 # expect+1: end}
158 . info ${:Uend\}}
159 make: "directive-for-escape.mk" line 120: end}
160 For: end for 1
161 For: loop body with i = begin<${UNDEF:Ufallback:N{{{}}}}>end:
162 # expect+1: begin<fallback>end
163 . info ${:Ubegin<${UNDEF:Ufallback:N{{{}}}}>end}
164 make: "directive-for-escape.mk" line 138: begin<fallback>end
165 For: end for 1
166 For: loop body with i = $:
167 # expect+1: $
168 . info ${:U\$}
169 make: "directive-for-escape.mk" line 147: $
170 make: "directive-for-escape.mk" line 155: invalid character ':' in .for loop variable name
171 For: end for 1
172 make: "directive-for-escape.mk" line 165: invalid character '}' in .for loop variable name
173 For: end for 1
174 For: end for 1
175 For: loop body with i = inner:
176 # expect+1: . ${:Uinner}: inner
177 . info . $$i: ${:Uinner}
178 # expect+1: . ${:Uinner}: inner
179 . info . $${i}: ${:Uinner}
180 # expect+1: . ${:Uinner:M*}: inner
181 . info . $${i:M*}: ${:Uinner:M*}
182 # expect+1: . $(:Uinner): inner
183 . info . $$(i): $(:Uinner)
184 # expect+1: . $(:Uinner:M*): inner
185 . info . $$(i:M*): $(:Uinner:M*)
186 # expect+1: . ${i${:U}}: outer
187 . info . $${i$${:U}}: ${i${:U}}
188 # expect+1: . ${:Uinner\}}: inner}
189 . info . $${i\}}: ${:Uinner\}} # XXX: unclear why ForLoop_SubstVarLong needs this
190 # expect+1: . ${i2}: two
191 . info . $${i2}: ${i2}
192 # expect+1: . ${i,}: comma
193 . info . $${i,}: ${i,}
194 # expect+1: . adjacent: innerinnerinnerinner
195 . info . adjacent: ${:Uinner}${:Uinner}${:Uinner:M*}${:Uinner}
196 make: "directive-for-escape.mk" line 175: . $i: inner
197 make: "directive-for-escape.mk" line 177: . ${i}: inner
198 make: "directive-for-escape.mk" line 179: . ${i:M*}: inner
199 make: "directive-for-escape.mk" line 181: . $(i): inner
200 make: "directive-for-escape.mk" line 183: . $(i:M*): inner
201 make: "directive-for-escape.mk" line 185: . ${i${:U}}: outer
202 make: "directive-for-escape.mk" line 187: . ${i\}}: inner}
203 make: "directive-for-escape.mk" line 189: . ${i2}: two
204 make: "directive-for-escape.mk" line 191: . ${i,}: comma
205 make: "directive-for-escape.mk" line 193: . adjacent: innerinnerinnerinner
206 make: "directive-for-escape.mk" line 202: invalid character '$' in .for loop variable name
207 For: end for 1
208 make: "directive-for-escape.mk" line 214: eight and no cents.
209 For: end for 1
210 make: "directive-for-escape.mk" line 227: newline in .for value
211 in .for loop from directive-for-escape.mk:227 with i = "
212 "
213 make: "directive-for-escape.mk" line 227: newline in .for value
214 in .for loop from directive-for-escape.mk:227 with i = "
215 "
216 For: loop body with i = "
217 ":
218 # expect+1: short: " "
219 . info short: ${:U" "}
220 # expect+1: long: " "
221 . info long: ${:U" "}
222 make: "directive-for-escape.mk" line 229: short: " "
223 make: "directive-for-escape.mk" line 231: long: " "
224 For: end for 1
225 For: loop body with i = "
226 ":
227 Parsing line 244: .for i in "${.newline}"
228 For: end for 1
229 Parse_PushInput: .for loop in directive-for-escape.mk, line 244
230 make: "directive-for-escape.mk" line 244: newline in .for value
231 in .for loop from directive-for-escape.mk:244 with i = "
232 "
233 For: loop body with i = "
234 ":
235 : ${:U" "}
236 SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk'
237 Parsing line 245: : ${:U" "}
238 ParseDependency(: " ")
239 ParseEOF: returning to file directive-for-escape.mk, line 247
240 SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk'
241 Parsing line 247: .MAKEFLAGS: -d0
242 ParseDependency(.MAKEFLAGS: -d0)
243 For: end for 1
244 For: loop body with i = #:
245 # ${:U#}
246 For: loop body with i = \\#:
247 # ${:U\\\\#}
248 For: end for 1
249 For: loop body with i = $:
250 # ${:U\$}
251 For: loop body with i = $i:
252 # ${:U$i}
253 For: loop body with i = $(i):
254 # ${:U$(i)}
255 For: loop body with i = ${i}:
256 # ${:U${i}}
257 For: loop body with i = $$:
258 # ${:U$$}
259 For: loop body with i = $$$$:
260 # ${:U$$$$}
261 For: loop body with i = ${:U\$\$}:
262 # ${:U${:U\$\$}}
263 For: end for 1
264 For: loop body with i = ${.TARGET}:
265 # ${:U${.TARGET}}
266 For: loop body with i = ${.TARGET}:
267 # ${:U${.TARGET}}
268 For: loop body with i = $${.TARGET}:
269 # ${:U$${.TARGET\}}
270 For: loop body with i = $${.TARGET}:
271 # ${:U$${.TARGET\}}
272 For: end for 1
273 For: loop body with i = (((:
274 # ${:U(((}
275 For: loop body with i = {{{:
276 # ${:U{{{}
277 For: loop body with i = ))):
278 # ${:U)))}
279 For: loop body with i = }}}:
280 # ${:U\}\}\}}
281 For: end for 1
282 For: loop body with , = 1:
283 # $$i $i
284 # VAR= $$i $i ${a:S,from${:U1}to,}
285 VAR= $$i $i ${a:S,from${:U1}to,}
286 make: Fatal errors encountered -- cannot continue
287 make: stopped in unit-tests
288 exit status 1
289