Skip to content

Commit 922d538

Browse files
committed
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: nodejs#4802 PR-URL: nodejs#4804 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 17d5a3a commit 922d538

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/msvs/nodevars.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22

33
rem Ensure this Node.js and npm are first in the PATH
4-
set PATH=%APPDATA%\npm;%~dp0;%PATH%
4+
set "PATH=%APPDATA%\npm;%~dp0;%PATH%"
55

66
setlocal enabledelayedexpansion
77
pushd "%~dp0"

0 commit comments

Comments
 (0)