oven-sh/bun

Bun.spawn with a non-existant cwd prints error with wrong path

Aperta

#8024 aperta il 7 gen 2024

 (4 commenti) (0 reazioni) (0 assegnatari)Rust (4486 fork)batch import
bugbun:spawngood first issue

Metriche repository

Star
 (90.348 stelle)
Metriche merge PR
 (Merge medio 1g 17h) (357 PR mergiate in 30 g)

Descrizione

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

adapted from my journal processing code:

    Bun.spawnSync({
      cmd: ['python3'],
      stdio: ["inherit", "inherit", "inherit"],
      cwd: `/something/that/doesnt/exist`
    });

What is the expected behavior?

print that the current working directory doesnt exist

What do you see instead?

it says the binary doesnt exist

Additional information

No response

Guida contributor