From 87dcfb54c446ce4916364c1f8991736ee50534d0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 23 Oct 2006 17:20:59 -0400 Subject: ENH: Added # character for shell escaping. --- Source/kwsys/System.c | 2 +- Tests/CustomCommand/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/System.c b/Source/kwsys/System.c index 33e1149..288513f 100644 --- a/Source/kwsys/System.c +++ b/Source/kwsys/System.c @@ -59,7 +59,7 @@ static int kwsysSystem_Shell__CharIsWhitespace(char c) /*--------------------------------------------------------------------------*/ static int kwsysSystem_Shell__CharNeedsQuotesOnUnix(char c) { - return ((c == '\'') || (c == '`') || (c == ';') || + return ((c == '\'') || (c == '`') || (c == ';') || (c == '#') || (c == '&') || (c == '$') || (c == '(') || (c == ')')); } diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 7685031..602f69b 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -190,6 +190,8 @@ SET(CHECK_ARGS amper&sand @two-ats@ one@at + "#two-pounds#" + "one#pound" "c:/posix/path/with space" "c:\\windows\\path\\with space" "'single quotes with space'" @@ -209,6 +211,8 @@ SET(CHECK_ARGS "amper&sand with space" "@two-ats@ with space" "one@at with space" + "#two-pounds# with space" + "one#pound with space" ) FOREACH(arg ${CHECK_ARGS}) SET(ARG "${arg}") -- cgit v0.12