Skip to content

win: Node.js command prompt fails to set PATH with unescaped & in it #4802

Closed
@jvilk

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions