From 57ad71d6c3e7cc45b69e55d124918eba3ef9af84 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 17 Jan 2014 15:56:32 -0600 Subject: [PATCH] NSH: Add support for while-do-done and until-do-done loops --- Documentation/NuttShell.html | 45 ++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index c35cb371da..603ae759d7 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: January 10, 2014

+

Last Updated: January 17, 2014

@@ -52,25 +52,31 @@
- 1.4 Built-In Variables + 1.4 Looping
- 1.5 Current Working Directory + 1.5 Built-In Variables
- 1.6 Environment Variables + 1.6 Current Working Directory
- 1.7 NSH Start-Up Script + 1.7 Environment Variables + + + +
+ + 1.8 NSH Start-Up Script @@ -605,7 +611,28 @@ fi + +
-

1.4 Built-In Variables

+

1.4 Looping

+
+ +

+ 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 + (see the sh command). + The syntax is as follows: +

+ + + + +
+

1.5 Built-In Variables

@@ -623,7 +650,7 @@ fi
-

1.5 Current Working Directory

+

1.6 Current Working Directory

@@ -641,7 +668,7 @@ fi
-

1.6 Environment Variables

+

1.7 Environment Variables

@@ -661,7 +688,7 @@ fi
-

1.7 NSH Start-Up Script

+

1.8 NSH Start-Up Script