From 3a0e52fc3fb7b462550e96a93d5bc84eb9666587 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 24 Jan 2017 14:17:37 -0600 Subject: [PATCH] Fix Windows dllPath.bat properly --- src/tools/convertRelease.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }