mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
Documentation/NuttShell.html: Trivial correction in comparison to Bash behavior.
This commit is contained in:
@@ -1771,7 +1771,7 @@ foo=bar
|
||||
</p>
|
||||
<blockquote><small>
|
||||
<b>NOTE:</b> This behavior differs from the <i>Bash</i> shell.
|
||||
<i>Bash</i> would retain the local Bash variable which will shadow the environment variable of the same name.
|
||||
<i>Bash</i> would retain the local Bash variable which will shadow the environment variable of the same name and same value.
|
||||
</small></blockquote>
|
||||
</li>
|
||||
<li>
|
||||
@@ -2994,8 +2994,7 @@ nsh>
|
||||
<p>
|
||||
<blockquote><small>
|
||||
<b>NOTE:</b> The <i>Bash</i> shell does not work this way.
|
||||
<i>Bash</i> would set the value of the local <i>Bash</i> variable and would not modify the environment variable.
|
||||
The local <i>Bash</i> variable would that then shadow the environment variable with a differing value.
|
||||
<i>Bash</i> would set the value of both the local <i>Bash</i> variable and the environment variable of the same name to the same value.
|
||||
</small></blockquote>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user