[gPXE-devel] [PATCH] [script] Control flow using if and goto

Shao Miller Shao.Miller at yrdsb.edu.on.ca
Sun Mar 14 14:25:43 EDT 2010


Stefan Hajnoczi wrote:
>
> This patch adds the following control flow commands:
>
>   if <condition> <true-cmd>
>
>   Execute <true-cmd> if <condition> is non-zero...
>

Thinking about this point again, and it goes for 'loopif' as well, do we 
wish to use zero or non-zero?  If we ever have something akin to 
$(command), command's return code should be zero on success.  I made an 
error in the last e-mail saying that this could stay as non-zero if we 
ever had $(command)-style support.

- Shao Miller
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://etherboot.org/pipermail/gpxe-devel/attachments/20100314/05f236a6/attachment.html 


More information about the gPXE-devel mailing list