When fetching a named setting using a name that does not explicitly specify a type, default to using the type stored when the setting was created, rather than always defaulting to "string". This allows the behaviour of user-defined settings to match the behaviour of predefined settings (which have a sensible default type). For example: set server:ipv4 192.168.0.1 echo ${server} will now print "192.168.0.1", rather than trying to print out the raw IPv4 address bytes as a string. The downside of this change is that existing tricks for printing special characters within scripts may require (backwards-compatible) modification. For example, the "clear screen" sequence: set esc:hex 1b set cls ${esc}[2J echo ${cls} will now have to become set esc:hex 1b set cls ${esc:string}[2J # Must now explicitly specify ":string" echo ${cls} Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
180 |
|
180 |
|
181 |
|
181 |
|
182 |
|
182 |
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
183 |
|
188 |
|
184 |
|
189 |
|
185 |
|
190 |
|
|
|
||
614 |
|
619 |
|
615 |
|
620 |
|
616 |
|
621 |
|
|
622 |
|
|
617 |
|
623 |
|
618 |
|
624 |
|
|
625 |
|
|
|
626 |
|
|
|
627 |
|
|
619 |
|
628 |
|
620 |
|
629 |
|
621 |
|
630 |
|
|
|
||
1132 |
|
1141 |
|
1133 |
|
1142 |
|
1134 |
|
1143 |
|
|
1144 |
|
|
1135 |
|
1145 |
|
1136 |
|
1146 |
|
1137 |
|
1147 |
|
|
|
||
1147 |
|
1157 |
|
1148 |
|
1158 |
|
1149 |
|
1159 |
|
|
1160 |
|
|
1150 |
|
1161 |
|
1151 |
|
1162 |
|
1152 |
|
1163 |
|
|
|
||
1157 |
|
1168 |
|
1158 |
|
1169 |
|
1159 |
|
1170 |
|
1160 |
|
|
|
|
1171 |
|
|
1161 |
|
1172 |
|
1162 |
|
1173 |
|
1163 |
|
1174 |
|
|
|
||
1226 |
|
1237 |
|
1227 |
|
1238 |
|
1228 |
|
1239 |
|
|
1240 |
|
|
|
1241 |
|
|
|
1242 |
|
|
|
1243 |
|
|
|
1244 |
|
|
|
1245 |
|
|
|
1246 |
|
|
|
1247 |
|
|
|
1248 |
|
|
|
1249 |
|
|
|
1250 |
|
|
|
1251 |
|
|
|
1252 |
|
|
|
1253 |
|
|
|
1254 |
|
|
|
1255 |
|
|
|
1256 |
|
|
|
1257 |
|
|
|
1258 |
|
|
|
1259 |
|
|
|
1260 |
|
|
|
1261 |
|
|
|
1262 |
|
|
|
1263 |
|
|
|
1264 |
|
|
|
1265 |
|
|
|
1266 |
|
|
|
1267 |
|
|
|
1268 |
|
|
1229 |
|
1269 |
|
1230 |
|
1270 |
|
1231 |
|
1271 |
|
1232 |
|
1272 |
|
|
1273 |
|
|
1233 |
|
1274 |
|
1234 |
|
1275 |
|
1235 |
|
1276 |
|
1236 |
|
|
|
|
1277 |
|
|
|
1278 |
|
|
1237 |
|
1279 |
|
1238 |
|
1280 |
|
1239 |
|
1281 |
|
|
|
||
1241 |
|
1283 |
|
1242 |
|
1284 |
|
1243 |
|
1285 |
|
1244 |
|
|
|
|
1286 |
|
|
|
1287 |
|
|
1245 |
|
1288 |
|
1246 |
|
1289 |
|
1247 |
|
1290 |
|
|
|
||
1272 |
|
1315 |
|
1273 |
|
1316 |
|
1274 |
|
1317 |
|
1275 |
|
|
|
1276 |
|
|
|
|
1318 |
|
|
|
1319 |
|
|
1277 |
|
1320 |
|
1278 |
|
1321 |
|
1279 |
|
1322 |
|
|
|
||
249 |
|
249 |
|
250 |
|
250 |
|
251 |
|
251 |
|
252 |
|
|
|
|
252 |
|
|
|
253 |
|
|
253 |
|
254 |
|
254 |
|
255 |
|
255 |
|
256 |
|
|
|
||
127 |
|
127 |
|
128 |
|
128 |
|
129 |
|
129 |
|
130 |
|
|
|
|
130 |
|
|
|
131 |
|
|
131 |
|
132 |
|
132 |
|
133 |
|
133 |
|
134 |
|
|
|
||
280 |
|
280 |
|
281 |
|
281 |
|
282 |
|
282 |
|
283 |
|
|
|
|
283 |
|
|
|
284 |
|
|
|
285 |
|
|
|
286 |
|
|
|
287 |
|
|
|
288 |
|
|
284 |
|
289 |
|
285 |
|
290 |
|
286 |
|
291 |
|
|
|
||
366 |
|
371 |
|
367 |
|
372 |
|
368 |
|
373 |
|
369 |
|
|
|
|
374 |
|
|
370 |
|
375 |
|
371 |
|
376 |
|
372 |
|
377 |
|