-
Notifications
You must be signed in to change notification settings - Fork 124
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
Feature request: pass file list through stdin #707
Comments
Note that this would still be subject to #347. Do you have prior art for a flag like this for me to look over how they present and document it? |
I'll try to think of something. I'm sure I used commands like this in the pasts, but had to be something less popular than bash staples. For most typical unix commands it's not necessary as calling them in a loop or via It's basically like having |
I don't have the time right now but it would be interesting to profile startup time. There is no dictionary loading; its just part of the binary. |
Oh, interesting. Made me wonder if I haven't messed up something, so I added an echo on every call in my script
So they roughly do the same work. I can also see on the screen that each invocation of
In my (bash) script (per-file):
So it does look like startup time. |
So if I'm understanding you correctly, One difference is it looks like your Similarly, if you passed all files on the command line or use #708, everything will be executed serially. A quick comparison
|
The exact times are a bit scattered, and I ran The above is |
Not much of a difference here. Some, but I have 20 cores, so I would expect much higher. |
Using GNU |
We use |
For me, my biggest hang up has been on the prior art / the design of the feature. The flag has been a little odd to me. Thinking about this more, I realized that I could expand my scope of prior art if I looked to commands that take things in as files. I would lean towards
Thoughts? |
I have stuffed
I'm fine with anything but since I'm here already:
I find using
I hope we retain 0-separated string support. Useful. Also kind of a crude hack from the past, but I don't know of any better practical solution. File paths can contain newline, but can't contain |
Overall, I think my proposal remains unchanged based on this feedback.
I don't think we support directories. Symlinks to files seems to be fine for "files".
Its a common enough convention and we are already using it. For whatever you think of it, clig also recommends using
Unless this is something specifically causing problems, I still think this should be deferred out. |
Deal. Done. :D |
Thank you and till our next fruitful collaboration! :) |
I have a long list of files (newline or
\0
separated) to run throughtypos
, and I don't see a good way to pass them other than a bash loop executingtypos
one by one (which is a waste of time).Passing like:
typos $files
have issues around globbing and command line argument limit, and can't handle
\0
.Would be nice is if I could:
The text was updated successfully, but these errors were encountered: