-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
"--null" or "--print0" option? #89
Comments
|
I would like to have this option too.. For now, my woraround is to do..
But hopefully internal support of null-separated output makes this faster. My actual use case is
|
@kaushalmodi Unrelated: your |
@BurntSushi LGreatTM, that's a more detailed spec than any of the other tools mentioned here. But maybe it should be both |
Thanks for letting me know.. I'll switch to There's |
In general, when there's been variation in flag options, I've tried to go with what grep does. I'm not a big fan of lots of aliases for doing the same thing, although I have done it in a few places. For a more niche option like this, I'd rather not increase the number of flags. |
@BurntSushi good to be consistent. Unfortunately I have absolutely no experience programming in Rust, otherwise I'd just make a PR for proof-of-concept. @kaushalmodi I avoided |
Just a nit about the wording of the spec ( |
@emlyn "to proceed" is "to come after," so yes, "follow" is right. :-) Looking at the dictionary, it does feel a little non-standard to me. The flavor isn't quite there. "follow" is probably a better word. I fixed the wording. Thanks! |
@emlyn Good catch. I definitely thought he meant "precede", which in hindsight wouldn't make sense. @BurntSushi "proceed" is a motion/action verb, meaning either "to continue" or to physically "go forward." |
All set! Will be in the next release, hopefully tonight. |
This flag causes a NUL byte to follow any file path in ripgrep's output. Closes BurntSushi#89.
Is there any chance you'd be interested in implementing a feature like Ag's
--null
option, and Ack's (not to mention find's)--print0
option? If you did, it'd be really easy to make tag work with Ripgrep, not to mention more supportive of machine-parsing in general.The text was updated successfully, but these errors were encountered: