Skip to content

Commit 386ad7e

Browse files
mscdexrvagg
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 <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 611c2f6 commit 386ad7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/msvs/nodevars.bat

+1-1
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)