From da088a173edbac4770137a79e3703337eefb2c49 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 22d2ec48da6c57..c94c44609711fa 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"