This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 4ed5bec47 Enable TMPFS and NSH_QUOTE to get CONFIG_NSH_CMDPARMS working
4ed5bec47 is described below

commit 4ed5bec472adfc3b196ccbeb343f5f991cdf39b5
Author: Alan Carvalho de Assis <[email protected]>
AuthorDate: Thu Jan 12 16:55:29 2023 -0300

    Enable TMPFS and NSH_QUOTE to get CONFIG_NSH_CMDPARMS working
---
 nshlib/Kconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/nshlib/Kconfig b/nshlib/Kconfig
index 6a8a14362..c917ee86b 100644
--- a/nshlib/Kconfig
+++ b/nshlib/Kconfig
@@ -125,8 +125,9 @@ config NSH_QUOTE
 
 config NSH_CMDPARMS
        bool "Enable commands as parameters"
-       default !DEFAULT_SMALL
+       default !DEFAULT_SMALL && NSH_QUOTE
        depends on !DISABLE_MOUNTPOINT
+       depends on FS_TMPFS
        ---help---
                If selected, then the output from commands, from file 
applications, and
                from NSH built-in commands can be used as arguments to other
@@ -142,6 +143,8 @@ config NSH_CMDPARMS
                Because this feature commits significant resources, it is 
disabled by
                default.
 
+               This features requires TMPFS mounted at /tmp and NSH_QUOTE 
enabled.
+
 config NSH_MAXARGUMENTS
        int "Maximum number of command arguments"
        default 7

Reply via email to