mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user