From 74a37990201fa351fc433ff3cc2d698eeb9846c4 Mon Sep 17 00:00:00 2001 From: Saikari Date: Sun, 1 Feb 2026 17:36:59 +0300 Subject: refactor: update PowerShell stdin command format for macOS compatibility --- tests/modules/stdin/test.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/modules/stdin') diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index bf51a5cd2..d942b7858 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -98,7 +98,10 @@ function main(t) end if pwsh ~= "" then - local run_stdin = string.format('env "%s" l --stdin', xmake) + 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