From 922d53897d3513f448b64c49c284715ec8c7e94b Mon Sep 17 00:00:00 2001 From: Brian White Date: Thu, 21 Jan 2016 16:20:23 -0500 Subject: [PATCH] tools: fix setting path containing an ampersand This commit fixes an issue with the Node.js command prompt on Windows where the PATH environment variable would not be set correctly if the existing PATH contained an '&'. Fixes: https://github.com/nodejs/node/issues/4802 PR-URL: https://github.com/nodejs/node/pull/4804 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- tools/msvs/nodevars.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/msvs/nodevars.bat b/tools/msvs/nodevars.bat index 22d2ec48da6..c94c4460971 100644 --- a/tools/msvs/nodevars.bat +++ b/tools/msvs/nodevars.bat @@ -1,7 +1,7 @@ @echo off rem Ensure this Node.js and npm are first in the PATH -set PATH=%APPDATA%\npm;%~dp0;%PATH% +set "PATH=%APPDATA%\npm;%~dp0;%PATH%" setlocal enabledelayedexpansion pushd "%~dp0"