From 5da672be328f6fbb1e2ebd569e97a5c095700bb6 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Mon, 23 Mar 2026 13:25:39 -0400 Subject: [PATCH] fix(test): use sh -c for portable echo in unconfigured fd test --- packages/opencode/test/effect/cross-spawn-spawner.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/test/effect/cross-spawn-spawner.test.ts b/packages/opencode/test/effect/cross-spawn-spawner.test.ts index 9aa815c387..9fdc93048b 100644 --- a/packages/opencode/test/effect/cross-spawn-spawner.test.ts +++ b/packages/opencode/test/effect/cross-spawn-spawner.test.ts @@ -305,7 +305,7 @@ describe("cross-spawn spawner", () => { test("returns empty stream for unconfigured fd", async () => { const out = await runScoped( Effect.gen(function* () { - const handle = yield* ChildProcess.make("echo", ["test"]) + const handle = yield* ChildProcess.make("sh", ["-c", "echo test"]) const fd3Output = yield* decodeByteStream(handle.getOutputFd(3)) yield* handle.exitCode return fd3Output