Conversation
|
I think this is problematic because xargs does not seem to automatically eat the leading whitespace on each line if you specify the delimiter. Perhaps a more comprehensive solution would be to use the -Z parameter with grep, and eat leading whitespaces after each null in the result of that, before finally passing to xargs with -0? Just a thought. For example, the current PR revision would do this on my end: |
|
Reasonable, @echuber2.
Thoughts? |
|
I've updated the pull request. |
|
This seems to be duplicating the default behavior (pre-request). Perhaps I'm misunderstanding what this is meant to do? (By the way, I tried a variation with grep --null and it seems that it does not work together with -v, for some reason. The result will still be delimited with newlines.) |
Make xargs commands less dangerous