You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: global cmd bin shadows System32 cmd.exe and hijacks every cmd /c call #1184
On Windows, npm i -g command-code installs a global bin named cmd (cmd, cmd.cmd, cmd.ps1).
Because the npm global bin directory usually comes before C:\Windows\System32 in the user PATH, this shadows the system cmd.exe.
Any program that starts cmd /c ... through PATH lookup then launches Command Code instead of the Windows shell.
Observed result
A console window titled command-code opened on its own with:
error: too many arguments. Expected 1 argument but got 14.
Another tool on the machine had run cmd /c <its command>, and PATH resolved cmd to the Command Code shim.
Activity