From 1b3a763e4bb088ccd3c5776e4e39dddad3532e63 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 17 Jan 2014 18:03:23 -0600 Subject: [PATCH] NSH: Loosen up if-then-else-fi syntx so that a command can be on the same line as the 'then' and 'else' tokens. This allows, as an example, 'if true; then echo true; else echo false; fi' which is much more bash-like --- Documentation/NuttShell.html | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index 603ae759d7..2eeed4e678 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -618,15 +618,34 @@ fi

while-do-done and until-do-done looping constructs are also supported. - These works from the command line but are primarily intended for use within NSH scripts + These work from the command line but are primarily intended for use within NSH scripts (see the sh command). - The syntax is as follows:

-