ENH: Added # character for shell escaping.

This commit is contained in:
Brad King 2006-10-23 17:20:59 -04:00
parent b25629efc4
commit 87dcfb54c4
2 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,7 @@ static int kwsysSystem_Shell__CharIsWhitespace(char c)
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
static int kwsysSystem_Shell__CharNeedsQuotesOnUnix(char c) static int kwsysSystem_Shell__CharNeedsQuotesOnUnix(char c)
{ {
return ((c == '\'') || (c == '`') || (c == ';') || return ((c == '\'') || (c == '`') || (c == ';') || (c == '#') ||
(c == '&') || (c == '$') || (c == '(') || (c == ')')); (c == '&') || (c == '$') || (c == '(') || (c == ')'));
} }

View File

@ -190,6 +190,8 @@ SET(CHECK_ARGS
amper&sand amper&sand
@two-ats@ @two-ats@
one@at one@at
"#two-pounds#"
"one#pound"
"c:/posix/path/with space" "c:/posix/path/with space"
"c:\\windows\\path\\with space" "c:\\windows\\path\\with space"
"'single quotes with space'" "'single quotes with space'"
@ -209,6 +211,8 @@ SET(CHECK_ARGS
"amper&sand with space" "amper&sand with space"
"@two-ats@ with space" "@two-ats@ with space"
"one@at with space" "one@at with space"
"#two-pounds# with space"
"one#pound with space"
) )
FOREACH(arg ${CHECK_ARGS}) FOREACH(arg ${CHECK_ARGS})
SET(ARG "${arg}") SET(ARG "${arg}")