[PATCH 1/1] doc: document true command
Heinrich Schuchardt
xypron.glpk at gmx.de
Fri Jan 22 19:28:07 CET 2021
Create a man-page for the true command.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
doc/usage/index.rst | 1 +
doc/usage/true.rst | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 doc/usage/true.rst
diff --git a/doc/usage/index.rst b/doc/usage/index.rst
index 1304b59aad..d3abf2d88a 100644
--- a/doc/usage/index.rst
+++ b/doc/usage/index.rst
@@ -24,3 +24,4 @@ Shell commands
mbr
pstore
sbi
+ true
diff --git a/doc/usage/true.rst b/doc/usage/true.rst
new file mode 100644
index 0000000000..aeac6b76ec
--- /dev/null
+++ b/doc/usage/true.rst
@@ -0,0 +1,28 @@
+true command
+============
+
+Synopsis
+--------
+
+::
+
+ true
+
+Description
+-----------
+
+The true command sets the return value $? to 0 (true).
+
+Example
+--------
+
+::
+
+ => true; echo $?
+ 0
+ =>
+
+Configuration
+-------------
+
+The true command is only available if CONFIG_HUSH_PARSER=y.
--
2.29.2
More information about the U-Boot
mailing list