-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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't pipe stdout/stderr to the same pipe for a child process #10269
Comments
Triage: @aturon tells me nothing has changed. |
cc #22119 |
@steveklabnik This should probably go to the wishlist. With IO reform, this would be extending the ways of setting up pipes to a child process. |
I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized. This issue has been moved to the RFCs repo: rust-lang/rfcs#871 |
This is more of a problem with the
rt::io::process
bindings rather than thestd::run
bindings (the latter needs a larger overhaul in general). Thert::io::process
bindings currently don't expose the ability to have something like2>&1
and then you capture the output of&1
(redirecting stderr to stdout and then reading stdout).A possible solution is to add another enum variant to
StdioContainer
named along the lines ofPipeTo(int)
which means that the output of this stdio slot should get redirected to the pipe which was defined at slotint
. Perhaps anIoError
should be raised if it doesn't reference aCreatePipe
slot, perhaps a failure.The text was updated successfully, but these errors were encountered: