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:
Brad King 2009-07-13 17:35:08 -04:00
parent 57e14a4f97
commit b3e8fd3e9b
1 changed files with 1 additions and 1 deletions

View File

@ -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;