From 47bfda0acb3201476239ce8e08daf9aab656ced0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Apr 2008 10:02:08 -0400 Subject: [PATCH] BUG: Fix kwsysSystem_Shell_GetArgumentForWindows to reset the windows trailing backslash count to zero when a make variable reference is encountered. --- Source/kwsys/System.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/kwsys/System.c b/Source/kwsys/System.c index de85c3a5d..3908c05e7 100644 --- a/Source/kwsys/System.c +++ b/Source/kwsys/System.c @@ -380,6 +380,10 @@ static char* kwsysSystem_Shell__GetArgument(const char* in, char* out, *out++ = *c++; } + /* The make variable reference eliminates any escaping needed + for preceding backslashes. */ + windows_backslashes = 0; + /* Stop if we have reached the end of the string. */ if(!*c) {