diff --git a/src/tools/convertRelease.pl b/src/tools/convertRelease.pl index c06a8ee68..fb2153a34 100644 --- a/src/tools/convertRelease.pl +++ b/src/tools/convertRelease.pl @@ -119,7 +119,9 @@ sub dllPath { unlink $outfile; open(OUT, ">$outfile") or die "$! creating $outfile"; print OUT "\@ECHO OFF\n"; - print OUT "PATH \"", join(';', binDirs(), '%PATH%'), "\"\n"; + # This SET syntax is essential for supporting embedded spaces and '&' + # characters in both the PATH variable and the new directory components + print OUT "SET \"PATH=", join(';', binDirs(), '%PATH%'), "\"\n"; close OUT; }