Skip to content
Snippets Groups Projects
Commit f8a01618 authored by Brad King's avatar Brad King
Browse files

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.
parent e4e7f37c
No related branches found
No related tags found
No related merge requests found
......@@ -709,7 +709,7 @@ static char** kwsysSystem__ParseUnixCommand(const char* command, int flags)
}
in_escape = 0;
}
else if(*c == '\\' && !in_single)
else if(*c == '\\')
{
/* The next character should be escaped. */
in_escape = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment