From 27409f1bf46976be533b62b4679dc08b7bcdfeff Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Fri, 25 Apr 2025 15:39:35 +0200 Subject: [PATCH] Try to use dotnet console class instead for stdin test --- tests/process/exec/stdin.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/process/exec/stdin.luau b/tests/process/exec/stdin.luau index 09efa37..fbf0498 100644 --- a/tests/process/exec/stdin.luau +++ b/tests/process/exec/stdin.luau @@ -7,7 +7,7 @@ local expected = "Hello from child process!" -- has unfortunately proved to be a significant challenge... local options = { stdio = { stdin = expected } } local result = if process.os == "windows" - then process.exec("powershell", { "-Command", "{ & bash -c cat }" }, options) + then process.exec("powershell", { "-Command", "[System.Console]::In.ReadToEnd()" }, options) else process.exec("bash", { "-c", "cat" }, options) local resultStdout = result.stdout