diff options
| author | Saikari <[email protected]> | 2026-02-01 17:36:59 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-01 17:36:59 +0300 |
| commit | 74a37990201fa351fc433ff3cc2d698eeb9846c4 (patch) | |
| tree | 565502c8be8a4c75b7e4dd2c9adcc4733a2a6775 /tests/modules | |
| parent | e2b38bd5e164e6584aceb6318556b0d2a1f08875 (diff) | |
refactor: update PowerShell stdin command format for macOS compatibility
Diffstat (limited to 'tests/modules')
| -rw-r--r-- | tests/modules/stdin/test.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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), |
