fix escape sequences in quoted resolve
This commit is contained in:
parent
f80594d292
commit
d461f625e8
1 changed files with 5 additions and 2 deletions
|
|
@ -277,8 +277,11 @@ std::pair< std::vector<arg*> , bool > resolve_arg(arg* in, parse_context ctx, bo
|
||||||
|
|
||||||
if(tsh->quoted || forcequote)
|
if(tsh->quoted || forcequote)
|
||||||
{
|
{
|
||||||
stringReplace(fulltext, "\"", "\\\"");
|
fulltext = stringReplace(fulltext, "\\\"", "\\\\\"");
|
||||||
stringReplace(fulltext, "!", "\\!");
|
fulltext = stringReplace(fulltext, "\"", "\\\"");
|
||||||
|
fulltext = stringReplace(fulltext, "!", "\"\\!\"");
|
||||||
|
fulltext = stringReplace(fulltext, "$", "\\$");
|
||||||
|
fulltext = stringReplace(fulltext, "`", "\\`");
|
||||||
}
|
}
|
||||||
if(!tsh->quoted && forcequote)
|
if(!tsh->quoted && forcequote)
|
||||||
fulltext = '"' + fulltext + '"';
|
fulltext = '"' + fulltext + '"';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue