This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 2eeeda6bbe3 Documentation/nsh: $? is the exit status of the last
command.
2eeeda6bbe3 is described below
commit 2eeeda6bbe31bd86a640a82859f7a890140c8fa6
Author: Marco Casaroli <[email protected]>
AuthorDate: Sun Oct 18 16:50:04 2026 +0200
Documentation/nsh: $? is the exit status of the last command.
NSH now keeps the exit status of the last command, so $? gives that
status instead of 0 or 1.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
Documentation/applications/nsh/nsh.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/applications/nsh/nsh.rst
b/Documentation/applications/nsh/nsh.rst
index 0b02ac55efa..1fb8a40000d 100644
--- a/Documentation/applications/nsh/nsh.rst
+++ b/Documentation/applications/nsh/nsh.rst
@@ -239,7 +239,7 @@ Built-In Variables
==================
====== ====================================================
-``$?`` The result of the last simple command execution. |br|
+``$?`` The exit status of the last simple command. |br|
On backgrounded commands, this variable holds only |br|
the result of spawning the background command.
====== ====================================================