BUG: Parse escapes in single-quoted unix arguments
This fixes KWSys's unix-style command-line parsing to interpret backslash escapes inside single-quoted strings.
This commit is contained in:
parent
57e14a4f97
commit
b3e8fd3e9b
|
@ -709,7 +709,7 @@ static char** kwsysSystem__ParseUnixCommand(const char* command, int flags)
|
||||||
}
|
}
|
||||||
in_escape = 0;
|
in_escape = 0;
|
||||||
}
|
}
|
||||||
else if(*c == '\\' && !in_single)
|
else if(*c == '\\')
|
||||||
{
|
{
|
||||||
/* The next character should be escaped. */
|
/* The next character should be escaped. */
|
||||||
in_escape = 1;
|
in_escape = 1;
|
||||||
|
|
Loading…
Reference in New Issue