diff --git a/nshlib/nsh_parse.c b/nshlib/nsh_parse.c index 800daf08c..cf8310bd7 100644 --- a/nshlib/nsh_parse.c +++ b/nshlib/nsh_parse.c @@ -1826,7 +1826,13 @@ static FAR char *nsh_argument(FAR struct nsh_vtbl_s *vtbl, /* Is it a back-quote ? These are not removed here */ - if (*pend != '`') + if (*pend == '`') + { + /* Yes, keep the quotes in place */ + + pend = qend; + } + else { /* No, get rid of the single / double quotes here */