summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown2013-07-23 17:49:12 +0200
committerMichael Brown2013-07-25 14:22:43 +0200
commit31f5211035cf0434a1b5043f707ecd2316d4a18c (patch)
tree31e7af8257515dbc9137e2154796adda00f5de0e /src/tests
parent[script] Allow initial whitespace on lines containing labels (diff)
downloadipxe-31f5211035cf0434a1b5043f707ecd2316d4a18c.tar.gz
ipxe-31f5211035cf0434a1b5043f707ecd2316d4a18c.tar.xz
ipxe-31f5211035cf0434a1b5043f707ecd2316d4a18c.zip
[script] Allow commands following a script label
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>
Diffstat (limited to 'src/tests')
0 files changed, 0 insertions, 0 deletions