Standard Output and Error are mixed #120
Unanswered
guidra-rev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The example in the readme works with raw streams, so yeah race conditions are possible. Cli.Wrap("foo") | (Console.WriteLine, Console.Error.WriteLine); This will at least guarantee that the lines come in one piece |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to redirect standard output and standard error to the console, in the same order as when I call the program manually in the console.
This example provided in the ReadMe.md, will mix output and error, so I get half a sentence from output, then half a sentence from error. I don't know who would ever need that.
How can I get the same order as when I call manually ?
I tried calling synchronously instead, but still same issue
As a workaround I use buffered execution, but this results in unnecessary copying, and I only see the output once it finished running
Beta Was this translation helpful? Give feedback.
All reactions