diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-01-17 18:03:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-01-17 18:03:23 -0600 |
commit | 4f8b0d0a714a7f8302e876e217e8f49e2c5901d5 (patch) | |
tree | 15d6fa10198715c62050711a064cce6444d064e1 /apps/ChangeLog.txt | |
parent | e33bd6bd784ba0334beb0481d82416be38fbb54d (diff) | |
download | nuttx-4f8b0d0a714a7f8302e876e217e8f49e2c5901d5.tar.gz nuttx-4f8b0d0a714a7f8302e876e217e8f49e2c5901d5.tar.bz2 nuttx-4f8b0d0a714a7f8302e876e217e8f49e2c5901d5.zip |
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
Diffstat (limited to 'apps/ChangeLog.txt')
-rw-r--r-- | apps/ChangeLog.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt index dfb45293e..fb3bf2979 100644 --- a/apps/ChangeLog.txt +++ b/apps/ChangeLog.txt @@ -792,3 +792,8 @@ support for while-do-done and until-do-done loops. These only work when executing a script file because they depend on the ability to seek in the file to implement the looping behaviors (2014-1-17). + * apps/nshlib/nsh_parse.c: Loosen up if-then-else-fi syntax to allow + a command to be on the same line as the then and else tokens like: + "if true; then echo true; else echo false; fi". Much more like bash! + (2014-1-17). + |