diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-01-18 09:39:16 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-01-18 09:39:16 -0600 |
commit | c9e72e0eed21a1c8c679bc094b0960dabf31c84d (patch) | |
tree | 9ef30c27fc3d15efa8db04cb1112d916316f3998 /apps/nshlib/Kconfig | |
parent | 1cc717520d36623c08f8b60f9cd7fede1bd8f1c1 (diff) | |
download | nuttx-c9e72e0eed21a1c8c679bc094b0960dabf31c84d.tar.gz nuttx-c9e72e0eed21a1c8c679bc094b0960dabf31c84d.tar.bz2 nuttx-c9e72e0eed21a1c8c679bc094b0960dabf31c84d.zip |
NSH: Add a break command; if-then-else and looping behavior can not be configured out of the build for small systems that need minimal scripting capability
Diffstat (limited to 'apps/nshlib/Kconfig')
-rw-r--r-- | apps/nshlib/Kconfig | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/nshlib/Kconfig b/apps/nshlib/Kconfig index df1a9c518..7fb6a52b3 100644 --- a/apps/nshlib/Kconfig +++ b/apps/nshlib/Kconfig @@ -345,6 +345,27 @@ config NSH_DISABLESCRIPT if-then[-else]-fi construct. This would only be set on systems where a minimal footprint is a necessity and scripting is not. +if !NSH_DISABLESCRIPT + +config NSH_DISABLE_ITEF + bool "Disable if-then-else-fi" + default n + ---help--- + This can be set to 'y' to suppress support for if-then-else-fi + sequences in scripts. This would only be set on systems where + some minimal scripting is required but if-then-else-fi is not. + +config NSH_DISABLE_LOOPS + bool "Disable loops" + default n + ---help--- + This can be set to 'y' to suppress support for while-do-done and + until-do-done sequences in scripts. This would only be set on + systems where some minimal scripting is required but looping + is not. + +endif # !NSH_DISABLESCRIPT + config NSH_DISABLEBG bool "Disable background commands" default n |