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

fix(windows spawn): use cmd to call batch scripts #11355

Closed
wants to merge 5 commits into from

Conversation

SunsetTechuila
Copy link
Contributor

@SunsetTechuila SunsetTechuila commented May 25, 2024

What does this PR do?

fixes #11328

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

I wrote automated tests

based on nodejs/node#7367 (comment)

not 100% sure about this, so count on your expertise


test("spaces in path and args", async () => {
const fields = "name scripts";
expect(async () => { await $`npm pkg get ${fields}` }).not.toThrow();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that this test case does not reproduce the original issue, since bun install does not use .cmd files.

can you create a cmd script using tempDirWithFiles and running the a script with that directory in $PATH

@cirospaciari
Copy link
Member

Closing due to bitrot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bun Shell]: Error calling cmd/bat scripts when both args and path contain spaces
3 participants