mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
Try to use dotnet console class instead for stdin test
This commit is contained in:
parent
c13728fce4
commit
27409f1bf4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue