Browse Source

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.
Brad King 16 years ago
parent
commit
b3e8fd3e9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/kwsys/System.c

+ 1 - 1
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;