oven-sh/bun

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

开放

#8,024 创建于 2024年1月7日

 (4 条评论) (0 个反应) (0 位负责人)Rust (4,486 个派生)batch import
bugbun:spawngood first issue

仓库指标

星标
 (90,348 个星标)
PR 合并指标
 (平均合并 1天 17小时) (30 天内合并 357 个 PR)

描述

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

贡献者指南