From 9196e82b6312eb53fb105f1e490370b4e9b7702a Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 10 Mar 2026 11:26:26 -0700 Subject: [PATCH] no setsid on macos --- CLAUDE.md | 2 +- src/run.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 53e0b9c..1c3f06e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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) diff --git a/src/run.ts b/src/run.ts index 516f0e5..8df05a7 100644 --- a/src/run.ts +++ b/src/run.ts @@ -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",