diff options
author | Brian White <mscdex@mscdex.net> | 2016-01-21 16:20:23 -0500 |
---|---|---|
committer | Brian White <mscdex@mscdex.net> | 2016-01-23 04:08:45 -0500 |
commit | 922d53897d3513f448b64c49c284715ec8c7e94b (patch) | |
tree | 5e517a8f56bac553084cf8d291725f7d2fb6aa87 /tools/msvs | |
parent | 17d5a3ab99ca4e3c0674d27411b5e7eca412a156 (diff) | |
download | node-new-922d53897d3513f448b64c49c284715ec8c7e94b.tar.gz |
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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'tools/msvs')
-rw-r--r-- | tools/msvs/nodevars.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/msvs/nodevars.bat b/tools/msvs/nodevars.bat index 22d2ec48da..c94c446097 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" |