summaryrefslogtreecommitdiff
path: root/Source/kwsys/System.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-13 17:35:08 -0400
committerBrad King <brad.king@kitware.com>2009-07-13 17:35:08 -0400
commitb3e8fd3e9bc866bae31a0c0a102f34884de5a63b (patch)
treefb2783b9333b1bdc632cbd1dc9ca7183be2f5fe3 /Source/kwsys/System.c
parent57e14a4f97d230da6cb6b95590d195ef86672daf (diff)
downloadcmake-b3e8fd3e9bc866bae31a0c0a102f34884de5a63b.tar.gz
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.
Diffstat (limited to 'Source/kwsys/System.c')
-rw-r--r--Source/kwsys/System.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/System.c b/Source/kwsys/System.c
index b67ccb637f..c985325bf4 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;