-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
-H makes no difference #247
Comments
This seems like intended behavior. The It would be much more helpful if you included the problem you're trying to solve. If you want output like grep, then you get it for free automatically if you pipe to another command or redirect stdout. Alternatively, use the |
Fair enough, that works, but that's not how I read the documentation of -H. |
@TheRealTroff Could you suggest a better phrasing? |
Actually, no. You've conflated -H with --heading. The behaviour of -H is that described by --heading as far as I can tell. If I remove the "prefix each match..." I don't see a point to have -H at all. |
The behavior of
|
I've already shown that the behavior is different in the original post? I've updated it for better formatting. |
@TheRealTroff How so? In all cases, a file name is shown. |
@TheRealTroff Is there something we can add to the docs that will make this clearer? (I can take a crack at it, but I'd consider something from you much more valuable!) |
In contrast:
This makes the output much less pleasant to parse.
The text was updated successfully, but these errors were encountered: