no setsid on macos

This commit is contained in:
Chris Wanstrath 2026-03-10 11:26:26 -07:00
parent bddaa6a566
commit 9196e82b63
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ Transcript-based shell integration test runner. Bun + TypeScript.
## Architecture
- `src/parse.ts` — parses `.shout` files into `ShoutFile` (list of `Command`)
- `src/run.ts` — executes commands via `Bun.spawn(["setsid", "/bin/sh"])`, captures output with sentinels
- `src/run.ts` — executes commands via `Bun.spawn(["/bin/sh"], { detached: true })`, captures output with sentinels
- `src/match.ts` — wildcard-aware output matching and diff generation
- `src/format.ts` — evaluates pass/fail, formats failures and summary
- `src/update.ts` — rewrites `.shout` files with actual output (`--update` mode)

View File

@ -137,7 +137,8 @@ export async function runFile(
env["PATH"] = options.pathDirs.join(":") + ":" + (env["PATH"] ?? "")
}
const proc = Bun.spawn(["setsid", "/bin/sh"], {
const proc = Bun.spawn(["/bin/sh"], {
detached: true,
stdin: "pipe",
stdout: "pipe",
stderr: "pipe",