mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-07 14:15:13 +00: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:
parent
bb492e789d
commit
4af9653b1e
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue