Documentation/NuttShell.html: Back out a removed feature.

This commit is contained in:
Gregory Nutt 2018-08-12 06:18:22 -06:00
parent 95e3b9ab8b
commit 45e61f1138

View File

@ -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 &lt;cmd&gt;]</code> as long as <code>&lt;cmd&gt;</code> has an exit status of zero (or non-zero if inverted with <code>!</code>). Execute <code>[sequence of &lt;cmd&gt;]</code> as long as <code>&lt;cmd&gt;</code> has an exit status of zero.
The syntax is as follows: The syntax is as follows:
<ul><pre> <ul><pre>
while [!] &lt;cmd&gt; while &lt;cmd&gt;
do do
[sequence of &lt;cmd&gt;] [sequence of &lt;cmd&gt;]
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 &lt;cmd&gt;]</code> as long as <code>&lt;cmd&gt;</code> has a non-zero exit status (or zero if inverted with <code>!</code>). Execute <code>[sequence of &lt;cmd&gt;]</code> as long as <code>&lt;cmd&gt;</code> has a non-zero exit status.
The syntax is as follows: The syntax is as follows:
<ul><pre> <ul><pre>
until [!] &lt;cmd&gt; until &lt;cmd&gt;
do do
[sequence of &lt;cmd&gt;] [sequence of &lt;cmd&gt;]
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.