From b3e8fd3e9bc866bae31a0c0a102f34884de5a63b Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 13 Jul 2009 17:35:08 -0400 Subject: [PATCH] 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. --- Source/kwsys/System.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/System.c b/Source/kwsys/System.c index b67ccb637..c985325bf 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;