From a31974f5f25547a6f4e4aadf5056602905b72b87 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 11 Jan 2014 09:50:54 -0600 Subject: Back quoted NSH arguments now functional --- apps/nshlib/Kconfig | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'apps/nshlib/Kconfig') 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" -- cgit v1.2.3