-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support exec #135
Comments
Yeah, that seems like a good idea. At least if it's not too complicated to implement. But I don't think it should be. I wouldn't want to export it by default. But putting it into an e.g. |
I wonder if there should be some kind of speedbump to prevent users from using it without realizing that it's platform-dependent, i.e. it doesn't work on windows. The |
Yeah, that seems good too. I had hoped that the generated documentation would show a |
Or maybe |
I think I think that you only get that label if you use an attribute like |
I'm writing a command wrapper and would like to exec the command I'm running, so that the process tree doesn't show the intermediate wrapper.
I looked in the standard library, and was surprised to see that exec is provided on unix:
https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.exec
What do you think about a
cmd_exec!
macro? The return type would be fixed toio::Error
, since in the success case it does not return.The text was updated successfully, but these errors were encountered: