Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package.json backslash escaping is not consistent with Node.JS's #11919

Open
wundersolutions-juanjo opened this issue Jun 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working shell Something to do with Bun as a shell windows An issue that only occurs on Windows

Comments

@wundersolutions-juanjo
Copy link

What version of Bun is running?

1.1.13+bd6a60512

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

  • Create a package.json with a start script that uses escaped backslashes
    • For example, "start": "bun C:\\NodeExpressServer\\server.js ./www"
  • Run the script with bun run start
    • For the provided example, I get the error error: Module not found "C:NodeExpressServerserver.js"
    • Using npm run start takes it's time, but eventually runs fine :P

What is the expected behavior?

bun run should be consistent with npm run

What do you see instead?

For the provided example, bun run requires another "round" of escaping backslashes, turning it into
"start": "bun C:\\\\NodeExpressServer\\\\server.js ./www"

Additional information

No response

@wundersolutions-juanjo wundersolutions-juanjo added bug Something isn't working needs triage labels Jun 17, 2024
@Jarred-Sumner Jarred-Sumner added windows An issue that only occurs on Windows shell Something to do with Bun as a shell and removed needs triage labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shell Something to do with Bun as a shell windows An issue that only occurs on Windows
Projects
None yet
Development

No branches or pull requests

3 participants