diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index 603ae759d7a3d6ca4eb68fee98276d44bfcaea74..2eeed4e678bc64bfcc539cd3e3f76da77b938404 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -618,15 +618,34 @@ fi <p> <code>while-do-done</code> and <code>until-do-done</code> looping constructs are also supported. - These works from the command line but are primarily intended for use within NSH scripts + These work from the command line but are primarily intended for use within NSH scripts (see the <a href="#cmdsh"><code>sh</code></a> command). - The syntax is as follows: </p> -<ul><dl> - <dt><code>while <test-cmd>; do <cmd-sequence>; done</code></dt> - <dd>Execute <code><cmd-sequence></code> as long as <code><test-cmd></code> has an exit status of zero.</dd> - <dt><code>until <test-cmd>; do <cmd-sequence>; done</code></dt> - <dd>Execute <code><cmd-sequence></code> as long as <code><test-cmd></code> has a non-zero exit status.</dd> +<ul> + <li> + <p><b><code>while-do-done</code></b>. + Execute <code>[sequence of <cmd>]</code> as long as <code><cmd></code> has an exit status of zero. + The syntax is as follows: + <ul><pre> +while <cmd> +do + [sequence of <cmd>] +done +</pre></ul> + </p> + </li> + <li> + <p><b><code>until-do-done</code></b> + Execute <code>[sequence of <cmd>]</code> as long as <code><cmd></code> has a non-zero exit status. + The syntax is as follows: + <ul><pre> +while <cmd> +do + [sequence of <cmd>] +done +</pre></ul> + </p> + </li> </dl></ul> <table width ="100%">