Documentation/NuttShell.html: Back out a removed feature.
This commit is contained in:
parent
95e3b9ab8b
commit
45e61f1138
@ -932,10 +932,10 @@ fi
|
||||
<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 (or non-zero if inverted with <code>!</code>).
|
||||
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>
|
||||
while <cmd>
|
||||
do
|
||||
[sequence of <cmd>]
|
||||
done
|
||||
@ -944,10 +944,10 @@ done
|
||||
</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 (or zero if inverted with <code>!</code>).
|
||||
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>
|
||||
until [!] <cmd>
|
||||
until <cmd>
|
||||
do
|
||||
[sequence of <cmd>]
|
||||
done
|
||||
@ -961,9 +961,6 @@ done
|
||||
The command success value of zero is treated true; a non-zero command failure value is treated false.
|
||||
The <a href="#cmdtest"><code>test</code></a> command is frequently used for comparisons.
|
||||
</p>
|
||||
<p>
|
||||
Note that <code>while</code> is equivalent to <code>until</code> if the command result is inverted.
|
||||
</p>
|
||||
|
||||
<p><b>The <a href="#cmdbreak"><code>break</code></a> Command</b>.
|
||||
A <a href="#cmdbreak"><code>break</code></a> command is also supported.
|
||||
|
Loading…
Reference in New Issue
Block a user