Skip to content
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

Closed
alexcrichton opened this issue Nov 4, 2013 · 4 comments
Closed

Can't pipe stdout/stderr to the same pipe for a child process #10269

alexcrichton opened this issue Nov 4, 2013 · 4 comments

Comments

@alexcrichton
Copy link
Member

This is more of a problem with the rt::io::process bindings rather than the std::run bindings (the latter needs a larger overhaul in general). The rt::io::process bindings currently don't expose the ability to have something like 2>&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 of PipeTo(int) which means that the output of this stdio slot should get redirected to the pipe which was defined at slot int. Perhaps an IoError should be raised if it doesn't reference a CreatePipe slot, perhaps a failure.

@huonw
Copy link
Member

huonw commented Nov 21, 2014

Triage: @aturon tells me nothing has changed.

@ghost ghost closed this as completed Nov 21, 2014
@ghost ghost reopened this Nov 21, 2014
@steveklabnik
Copy link
Member

cc #22119

@aturon
Copy link
Member

aturon commented Feb 16, 2015

@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.

@steveklabnik
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants