Documentation/NuttShell.html: Back out a removed feature.
This commit is contained in:
parent
95e3b9ab8b
commit
45e61f1138
@ -932,10 +932,10 @@ fi
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p><b><code>while-do-done</code></b>.
|
<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:
|
The syntax is as follows:
|
||||||
<ul><pre>
|
<ul><pre>
|
||||||
while [!] <cmd>
|
while <cmd>
|
||||||
do
|
do
|
||||||
[sequence of <cmd>]
|
[sequence of <cmd>]
|
||||||
done
|
done
|
||||||
@ -944,10 +944,10 @@ done
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p><b><code>until-do-done</code></b>
|
<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:
|
The syntax is as follows:
|
||||||
<ul><pre>
|
<ul><pre>
|
||||||
until [!] <cmd>
|
until <cmd>
|
||||||
do
|
do
|
||||||
[sequence of <cmd>]
|
[sequence of <cmd>]
|
||||||
done
|
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 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.
|
The <a href="#cmdtest"><code>test</code></a> command is frequently used for comparisons.
|
||||||
</p>
|
</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>.
|
<p><b>The <a href="#cmdbreak"><code>break</code></a> Command</b>.
|
||||||
A <a href="#cmdbreak"><code>break</code></a> command is also supported.
|
A <a href="#cmdbreak"><code>break</code></a> command is also supported.
|
||||||
|
Loading…
Reference in New Issue
Block a user