win: Node.js command prompt fails to set PATH with unescaped & in it #4802
Closed
Description
Given a PATH on Windows with the following directory entry:
...;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\Doctrine extensions for PHP\;...
... Node.js Command Prompt will echo the error:
'MySQL' is not recognized as an external or internal command, operable program or batch file.
Windows Command Prompt parses this path just fine.
Now, a permanent solution (for the user) would be to change the PATH to use quotations around this directory... but I'd argue that paths like these may be more common "in the wild" than we think. It would be ideal to nip it in the bud with a robust solution that mirrors the vanilla Command Prompt's behavior, but I'm not sure if one exists.
Activity