Allow commands to be placed on the same line as a label. This allows for improved legibility of loop constructions by incorporating the loop check condition into the same line as the loop label. For example, to iterate over network devices using the forthcoming "inc" command: set idx:int16 0 :loop isset ${net${idx}/mac} || goto loop_done echo net${idx} is a ${net${idx}/chip} with MAC ${net${idx}/mac} inc idx && goto loop :loop_done Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
55 |
|
55 |
|
56 |
|
56 |
|
57 |
|
57 |
|
58 |
|
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
59 |
|
62 |
|
60 |
|
63 |
|
61 |
|
64 |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
62 |
|
68 |
|
63 |
|
69 |
|
64 |
|
70 |
|
65 |
|
71 |
|
66 |
|
72 |
|
|
73 |
|
|
67 |
|
74 |
|
|
75 |
|
|
68 |
|
76 |
|
69 |
|
77 |
|
70 |
|
|
|
|
78 |
|
|
71 |
|
79 |
|
72 |
|
80 |
|
73 |
|
81 |
|
|
|
||
104 |
|
112 |
|
105 |
|
113 |
|
106 |
|
114 |
|
107 |
|
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
|
|
|
127 |
|
|
|
128 |
|
|
108 |
|
129 |
|
109 |
|
130 |
|
110 |
|
|
|
|
131 |
|
|
111 |
|
132 |
|
112 |
|
133 |
|
113 |
|
134 |
|
|
|
||
116 |
|
137 |
|
117 |
|
138 |
|
118 |
|
139 |
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
119 |
|
143 |
|
120 |
|
144 |
|
121 |
|
145 |
|
|
|
||
136 |
|
160 |
|
137 |
|
161 |
|
138 |
|
162 |
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
163 |
|
160 |
|
164 |
|
161 |
|
165 |
|
162 |
|
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
163 |
|
170 |
|
164 |
|
171 |
|
165 |
|
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
166 |
|
175 |
|
167 |
|
176 |
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
|
177 |
|
|
171 |
|
178 |
|
172 |
|
179 |
|
173 |
|
|
|
|
180 |
|
|
174 |
|
181 |
|
175 |
|
182 |
|
176 |
|
183 |
|
|
|
||
224 |
|
231 |
|
225 |
|
232 |
|
226 |
|
233 |
|
227 |
|
|
|
|
234 |
|
|
228 |
|
235 |
|
229 |
|
236 |
|
230 |
|
237 |
|
|
|
||
233 |
|
240 |
|
234 |
|
241 |
|
235 |
|
242 |
|
236 |
|
|
|
|
243 |
|
|
237 |
|
244 |
|
238 |
|
245 |
|
239 |
|
246 |
|
|
|
||
267 |
|
274 |
|
268 |
|
275 |
|
269 |
|
276 |
|
270 |
|
|
|
|
277 |
|
|
|
278 |
|
|
|
279 |
|
|
|
280 |
|
|
271 |
|
281 |
|
272 |
|
282 |
|
273 |
|
|
|
274 |
|
|
|
275 |
|
|
|
|
283 |
|
|
|
284 |
|
|
276 |
|
285 |
|
277 |
|
|
|
278 |
|
|
|
|
286 |
|
|
279 |
|
287 |
|
280 |
|
288 |
|
281 |
|
289 |
|
282 |
|
|
|
283 |
|
|
|
|
290 |
|
|
|
291 |
|
|
284 |
|
292 |
|
285 |
|
293 |
|
286 |
|
|
|
287 |
|
|
|
288 |
|
|
|
|
294 |
|
|
|
295 |
|
|
|
296 |
|
|
289 |
|
297 |
|
290 |
|
298 |
|
291 |
|
299 |
|
|
|
||
331 |
|
339 |
|
332 |
|
340 |
|
333 |
|
341 |
|
|
342 |
|
|
|
343 |
|
|
334 |
|
344 |
|
335 |
|
345 |
|
336 |
|
346 |
|