From c68524a15b90a0c400930c9ca9c4ba4e7911e569 Mon Sep 17 00:00:00 2001 From: Saikari Date: Sun, 1 Feb 2026 19:28:23 +0300 Subject: refactor: update PowerShell stdin command format for macOS compatibility --- tests/modules/stdin/test.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/modules/stdin/test.lua') diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index f2609c531..44d0da2b7 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -116,6 +116,9 @@ function main(t) if pwsh ~= "" then local run_stdin = string.format("%s l --stdin", xmake) + if os.host() == "macosx" then + run_stdin = string.format('sh -c \\"%s\\"', run_stdin) + end test_shell( "pwsh_single", string.format('%s -c "echo \\"print(\'hello_pwsh\')\\" | %s"', pwsh, run_stdin), -- cgit v1.3.1