summaryrefslogtreecommitdiff
path: root/apps/nshlib/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-11 09:50:54 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-11 09:50:54 -0600
commita31974f5f25547a6f4e4aadf5056602905b72b87 (patch)
tree83a6b76c362cad736c00ef7829373bcdde242c2d /apps/nshlib/Kconfig
parent9a3db48a553a6d62d9954d6b20327e95505578cc (diff)
downloadpx4-nuttx-a31974f5f25547a6f4e4aadf5056602905b72b87.tar.gz
px4-nuttx-a31974f5f25547a6f4e4aadf5056602905b72b87.tar.bz2
px4-nuttx-a31974f5f25547a6f4e4aadf5056602905b72b87.zip
Back quoted NSH arguments now functional
Diffstat (limited to 'apps/nshlib/Kconfig')
-rw-r--r--apps/nshlib/Kconfig27
1 files changed, 14 insertions, 13 deletions
diff --git a/apps/nshlib/Kconfig b/apps/nshlib/Kconfig
index 7d12d4d65..df1a9c518 100644
--- a/apps/nshlib/Kconfig
+++ b/apps/nshlib/Kconfig
@@ -277,11 +277,11 @@ config NSH_DISABLE_SEMICOLON
command separated by a semicolon. You can disable this feature to
save a little memory on FLASH challenged platforms.
-config NSH_FUNCPARMS
- bool "Enable function parameters"
+config NSH_CMDPARMS
+ bool "Enable commands as parameters"
default n
---help---
- If selected, then the output from cmds, from file applications, and
+ If selected, then the output from commands, from file applications, and
from NSH built-in commands can be used as arguments to other
commands. The entity to be executed is identified by enclosing the
command line in back quotes. For example,
@@ -292,14 +292,15 @@ config NSH_FUNCPARMS
environment variable BAR. The value of the environment variable FOO
is then set output of myprogram on stdout.
- This feature is disabled by default.
+ Because this feature commits significant resourse, it is disabled by
+ default.
config NSH_TMPDIR
string "Temporary file directory"
default "/tmp"
- depends on NSH_FUNCPARMS
+ depends on NSH_CMDPARMS
---help---
- If NSH_FUNCPARMS is selected, then function output will be retained
+ If NSH_CMDPARMS is selected, then function output will be retained
in a temporary file. In that case, this string must be provided to
specify the full path to a directory where temporary files can be
created. This would be a good application of RAM disk: To provide
@@ -312,21 +313,21 @@ config NSH_MAXARGUMENTS
The maximum number of NSH command arguments.
Default: 6
-config NSH_ENVCAT
- bool "Concatenation of environment variables"
+config NSH_ARGCAT
+ bool "Concatenation of argument strings"
default n
---help---
- Support concatenation of strings with environment variables. For
- example:
+ Support concatenation of strings with environment variables or command
+ output. For example:
set FOO XYZ
set BAR 123
set FOOBAR ABC_${FOO}_${BAR}
would set the environment variable FOO to XYZ, BAR to 123 and FOOBAR
- to ABC_XYZ_123. If NSH_ENV, then a slightly small FLASH footprint
- results but then also only simple environment variables like $FOO
- can be used on the command line.
+ to ABC_XYZ_123. If NSH_ARGCAT is not selected, then a slightly small
+ FLASH footprint results but then also only simple environment
+ variables like $FOO can be used on the command line.
config NSH_NESTDEPTH
int "Maximum command nesting"