aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-22 19:25:53 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-25 01:15:34 +0100
commit9d4445bc6dd314cc34aaeeac1c03d5bdb6761cca (patch)
tree3f6e1b5f07b0b185514d2c461d27ceb123462c05 /doc
parenta3ad3079c007adb08d24a30855b188f5cdd4ec97 (diff)
downloadu-boot-9d4445bc6dd314cc34aaeeac1c03d5bdb6761cca.zip
u-boot-9d4445bc6dd314cc34aaeeac1c03d5bdb6761cca.tar.gz
u-boot-9d4445bc6dd314cc34aaeeac1c03d5bdb6761cca.tar.bz2
doc: document true command
Create a man-page for the true command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/usage/index.rst1
-rw-r--r--doc/usage/true.rst28
2 files changed, 29 insertions, 0 deletions
diff --git a/doc/usage/index.rst b/doc/usage/index.rst
index 1304b59..d3abf2d 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 0000000..f9ef71b
--- /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.