doc: describe the false command
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 24 Jan 2021 21:11:55 +0000 (22:11 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 25 Jan 2021 00:15:34 +0000 (01:15 +0100)
Provide a man-page for the false command.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
doc/usage/false.rst [new file with mode: 0644]
doc/usage/index.rst

diff --git a/doc/usage/false.rst b/doc/usage/false.rst
new file mode 100644 (file)
index 0000000..a17fe86
--- /dev/null
@@ -0,0 +1,28 @@
+false command
+=============
+
+Synopsis
+--------
+
+::
+
+    false
+
+Description
+-----------
+
+The false command sets the return value $? to 1 (false).
+
+Example
+-------
+
+::
+
+    => false; echo $?
+    1
+    =>
+
+Configuration
+-------------
+
+The false command is only available if CONFIG_HUSH_PARSER=y.
index d3abf2d..0309abf 100644 (file)
@@ -19,6 +19,7 @@ Shell commands
    button
    echo
    exit
+   false
    for
    loady
    mbr