mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 08:52:01 +08:00
nshlib/nsh_parse: support use \\ to pass '\' to argument
Now the nsh can use \\ to pass '\' to the command Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -216,7 +216,7 @@ static FAR char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl,
|
||||
FAR char *varname);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NSH_QUOTE) && defined(CONFIG_NSH_ARGCAT)
|
||||
#if defined(CONFIG_NSH_QUOTE)
|
||||
static void nsh_dequote(FAR char *cmdline);
|
||||
#else
|
||||
# define nsh_dequote(c)
|
||||
@@ -1306,7 +1306,7 @@ static FAR char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl,
|
||||
* Name: nsh_dequote
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_NSH_QUOTE) && defined(CONFIG_NSH_ARGCAT)
|
||||
#if defined(CONFIG_NSH_QUOTE)
|
||||
static void nsh_dequote(FAR char *cmdline)
|
||||
{
|
||||
FAR char *ptr;
|
||||
|
Reference in New Issue
Block a user