From 288a083d919e1b53a3ce57d7c44dc80f3d2e5dea Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 11 Aug 2018 10:17:38 -0600 Subject: [PATCH] Documentation/NuttShell.html: Another update to the NSH documentation. --- Documentation/NuttShell.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index 90fa5075d4..39ad8ca19a 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -910,6 +910,12 @@ else fi +

+ Where <cmd> is a simple command. + The command success value of zero is treated true; a non-zero command failure value is treated false. + The test command is frequently used for comparisons. +

+
@@ -950,6 +956,11 @@ done +

+ Where <cmd> is a simple command. + The command success value of zero is treated true; a non-zero command failure value is treated false. + The test command is frequently used for comparisons. +

Note that while is equivalent to until if the command result is inverted.

@@ -1168,7 +1179,7 @@ mount -t vfat /dev/ram1 /tmp

Command Syntax:

    -[ <expression> ]
    +[ [!] <expression> ]
     test <expression>