-
-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not redirect standard output from bash read
command prompt
#140
Comments
Can you check if the same thing works using using var process = new Process
{
StartInfo =
{
FileName = path,
RedirectStandardOutput = true
}
};
process.Start();
var output = process.StandardOutput.ReadToEnd(); |
I'd appreciate it if you can figure out where the bug is in CliWrap. I'm currently preoccupied with a war looming on the horizon. 🙁 |
It's incredibly challenging for me. I will PR if I figure the bug out. |
read
command prompt
I did this in command line: /bin/bash -c "echo test1; read -r -p test2; echo test3" > foo.txt The output file contained only: test1
test3 So it might be that's just how |
Tested using using var process = new Process
{
StartInfo =
{
FileName = "/bin/bash",
Arguments = "-c \"echo test1; read -r -p test2; echo test3\"",
RedirectStandardOutput = true
}
};
process.Start();
var output = process.StandardOutput.ReadToEnd(); Closing as it doesn't seem to be a problem with CliWrap. |
Version
3.4.1
Details
The 'read' shell script can not be redirect to StandardOutput.
Here's the C# code:
Here's the shell code
"Ready for test press any key or wait for 3 s" was not printed
Steps to reproduce
As details above.
The text was updated successfully, but these errors were encountered: