Bug 485264 - Not enough quotes in mozprog.m4 when suggestions contain spaces r=ted
authorBenjamin Smedberg <benjamin@smedbergs.us>
Tue, 31 Mar 2009 08:41:50 -0400
changeset 26760 c98003848229bfacd11f2eda3353d3f2c046b819
parent 26759 6d229acfb6d576ff8d0e02159a990edaebcca6fb
child 26761 8b4409c3a9f84134bba82dcbeec5b4e1a655323c
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs485264
milestone1.9.2a1pre
Bug 485264 - Not enough quotes in mozprog.m4 when suggestions contain spaces r=ted
build/autoconf/mozprog.m4
js/src/build/autoconf/mozprog.m4
--- a/build/autoconf/mozprog.m4
+++ b/build/autoconf/mozprog.m4
@@ -43,28 +43,28 @@ if test `uname -s | grep -c MINGW 2>/dev
 fi
 ])
 
 AC_DEFUN(MOZ_PATH_PROG,
 [ AC_PATH_PROG($1,$2,$3,$4)
   if test "$msyshost"; then
     case "[$]$1" in
     /*)
-      $1="$(cd $(dirname [$]$1) && pwd -W)/$(basename [$]$1)"
+      $1="$(cd $(dirname "[$]$1") && pwd -W)/$(basename "[$]$1")"
       if test -e "[$]$1.exe"; then
         $1="[$]$1.exe"
       fi
     esac
   fi
 ])
 
 AC_DEFUN(MOZ_PATH_PROGS,
 [  AC_PATH_PROGS($1,$2,$3,$4)
   if test "$msyshost"; then
     case "[$]$1" in
     /*)
-      $1="$(cd $(dirname [$]$1) && pwd -W)/$(basename [$]$1)"
+      $1="$(cd $(dirname "[$]$1") && pwd -W)/$(basename "[$]$1")"
       if test -e "[$]$1.exe"; then
         $1="[$]$1.exe"
       fi
     esac
   fi
 ])
--- a/js/src/build/autoconf/mozprog.m4
+++ b/js/src/build/autoconf/mozprog.m4
@@ -43,28 +43,28 @@ if test `uname -s | grep -c MINGW 2>/dev
 fi
 ])
 
 AC_DEFUN(MOZ_PATH_PROG,
 [ AC_PATH_PROG($1,$2,$3,$4)
   if test "$msyshost"; then
     case "[$]$1" in
     /*)
-      $1="$(cd $(dirname [$]$1) && pwd -W)/$(basename [$]$1)"
+      $1="$(cd $(dirname "[$]$1") && pwd -W)/$(basename "[$]$1")"
       if test -e "[$]$1.exe"; then
         $1="[$]$1.exe"
       fi
     esac
   fi
 ])
 
 AC_DEFUN(MOZ_PATH_PROGS,
 [  AC_PATH_PROGS($1,$2,$3,$4)
   if test "$msyshost"; then
     case "[$]$1" in
     /*)
-      $1="$(cd $(dirname [$]$1) && pwd -W)/$(basename [$]$1)"
+      $1="$(cd $(dirname "[$]$1") && pwd -W)/$(basename "[$]$1")"
       if test -e "[$]$1.exe"; then
         $1="[$]$1.exe"
       fi
     esac
   fi
 ])