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
ack does not search stdin from terminal #603
Comments
You're asking it to both descend through a tree AND search stdin. I don't see how that would make sense to do. |
I don't want it to search through the tree. In this case I mean "." as the pattern (matching anything). The results are equivalent with "a":
searches the tree, and:
|
Ah, ok, you want |
|
Oh, great! Thanks! Sorry, should have found that myself. :) |
Not a problem. It took me a minute to find it myself. :-) |
From the help text:
However, when no files are specified, ack recursively searches the current directory:
And when "-" is specified, it is treated as a file name:
I understand the usefulness of the first case, as this is probably what people mean 90+% of the time, but when the user explicitly asks for stdin (as in the second case), it would be nice to let them have it.
The text was updated successfully, but these errors were encountered: