Stefan Hajnoczi wrote:
...
: <label>
Define a label
goto <label>
Jump to label in a script. Not supported from the shell.
Suppose I have the following script:
#!gpxe
set space:hex 20
set colon:string :
set foo:string foo
set mylabel:hex ${colon:hex}:${space:hex}:${foo:hex}
echo Do some stuff
if ${some-condition} goto ${foo:string}
goto end
${mylabel:string}
echo Got to ${foo:string}
: end
I wanted to confirm that this patch's implementation of ': label' could
never establish a "foo" label due to the expansion and could never
output "Got to foo" regardless of some-condition. Is that so? If so,
does it matter? Might anyone wish to dynamically generate labels for
some reason?
- Shao Miller
_______________________________________________
gPXE-devel mailing list
[email protected]
http://etherboot.org/mailman/listinfo/gpxe-devel