From 42fb29e925668f87329ac8ea42ec2af0f6e37634 Mon Sep 17 00:00:00 2001 From: Saikari Date: Mon, 2 Feb 2026 03:19:20 +0300 Subject: refactor: update run_stdin command for MacOS compatibility --- tests/modules/stdin/test.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index 461e76d68..665857595 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -26,9 +26,9 @@ function main(t) local run_stdin = string.format('env "%s" l --stdin', xmake) -- Fix pwsh and cosmocc "exec format error" for MacOS - if is_ape and (os.host() == "macosx" or os.host() == "linux") then - run_stdin = string.format('sh -c \\"%s\\"', run_stdin) - end + if is_ape and os.host() ~= "windows" then + run_stdin = string.format("sh -c ' \\\"%s\\\" l --stdin '", xmake) + end local function test_shell(name, cmd, expect) print("testing " .. name .. ": " .. cmd) -- cgit v1.3.1