-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Equivalent argument of GNU xargs -r (--no-run-if-empty) #56
Comments
I don't understand it :(.
Can you give some examples? |
Sure, thanks for the quick response. I have this command: $(docker ps -aq --no-trunc --filter name=^/"<name_of_the_container>") I pipe it to With GNU xargs -r, if the specified container doesn't exist, then it does nothing and exits with an error code of 0, which is what I want. But I can't seem to find the equivalent in rush, I don't even know if this feature exist, so I wanted to know. |
Another example could be: |
Not supported, but there's a workaround solution.
|
Oh well, never mind then. Another question... Do you think this feature is out-of-scope for rush? If it can be added, I would be very glad to contribute to rush and make a PR if you like! I'm not sure if this feature is widely used, but since it depends on a GNU extension, if it's implemented in this project simply and elegantly, it could be a step forward for rush to be used by users who rely on GNU xargs like me. |
Sure PR is welcome. To be honest, this project gets complex for me. Some low-level (process and signal) operations contributed by @bburgin are hard to understand for me :( So I might I may not be able to help. Personally, I rarely use that feature. |
Alright, the idea would be to implement the feature as simple as possible, and if its not feasible that way, then I would just leave it as it is. |
Hi! Pretty much the title. As the repository doesn't have a Discussions page, I'm asking here.
As I want to replace my utils with Go equivalents, I want to replace xargs with rush but I can't seem to find the equivalent option. -c for continue doesn't seem like it, besides the fact that it creates a file, which is something I don't want.
Thanks in advance!
The text was updated successfully, but these errors were encountered: