From: Ted Kremenek Date: Thu, 21 Feb 2013 20:28:59 +0000 (+0000) Subject: [scan-build] Add quotes around clang executable name to handle path withs spaces... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47135fe346b101c9bfb15c7309423fb57ec533f0;p=clang [scan-build] Add quotes around clang executable name to handle path withs spaces. Fixes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175790 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index bebed558b4..de28d90d0b 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -1553,7 +1553,8 @@ if ($displayHelp) { $ClangCXX = $Clang; $ClangCXX =~ s/\-\d+\.\d+$//; $ClangCXX .= "++"; -$ClangVersion = HtmlEscape(`$Clang --version`); +# Make sure to use "" to handle paths with spaces. +$ClangVersion = HtmlEscape(`"$Clang" --version`); # Determine where results go. $CmdArgs = HtmlEscape(join(' ', map(ShellEscape($_), @ARGV)));