diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index 603ae759d7..2eeed4e678 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -618,15 +618,34 @@ fi
while-do-done
and until-do-done
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 sh
command).
- The syntax is as follows:
while <test-cmd>; do <cmd-sequence>; done
<cmd-sequence>
as long as <test-cmd>
has an exit status of zero.until <test-cmd>; do <cmd-sequence>; done
<cmd-sequence>
as long as <test-cmd>
has a non-zero exit status.while-do-done
.
+ Execute [sequence of <cmd>]
as long as <cmd>
has an exit status of zero.
+ The syntax is as follows:
+
+while <cmd> +do + [sequence of <cmd>] +done +
until-do-done
+ Execute [sequence of <cmd>]
as long as <cmd>
has a non-zero exit status.
+ The syntax is as follows:
+
+while <cmd> +do + [sequence of <cmd>] +done +