diff options
author | Brad King <brad.king@kitware.com> | 2009-07-13 21:35:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-07-13 21:35:08 (GMT) |
commit | b3e8fd3e9bc866bae31a0c0a102f34884de5a63b (patch) | |
tree | fb2783b9333b1bdc632cbd1dc9ca7183be2f5fe3 | |
parent | 57e14a4f97d230da6cb6b95590d195ef86672daf (diff) | |
download | CMake-b3e8fd3e9bc866bae31a0c0a102f34884de5a63b.zip CMake-b3e8fd3e9bc866bae31a0c0a102f34884de5a63b.tar.gz CMake-b3e8fd3e9bc866bae31a0c0a102f34884de5a63b.tar.bz2 |
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.
-rw-r--r-- | Source/kwsys/System.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/System.c b/Source/kwsys/System.c index b67ccb6..c985325 100644 --- a/Source/kwsys/System.c +++ b/Source/kwsys/System.c @@ -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; |