oven-sh/bun

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

Offen

#8.024 geöffnet am 07.01.2024

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (4.486 Forks)batch import
bugbun:spawngood first issue

Repository-Metriken

Stars
 (90.348 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 17h) (357 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide