Skip to content

Commit da088a1

Browse files
mscdexMyles Borins
authored andcommitted
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: #4802 PR-URL: #4804 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4a492cd commit da088a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)