From 4ed5bec472adfc3b196ccbeb343f5f991cdf39b5 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Thu, 12 Jan 2023 16:55:29 -0300 Subject: [PATCH] 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 6a8a14362c..c917ee86b8 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