Skip to content
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

Force stdin when grepping piped data #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fersingb
Copy link

According to the grep man page: If no FILE is given, recursive searches examine the working directory, and nonrecursive searches read standard input.

In the case of gf, most patterns usually use the recursive flag which will prevent gf to work as expected when piping data to it. This commit fixes this behavior, forcing grep to process stdin even when the recursive flag is used.

According to the grep man page: If no FILE is given, recursive searches examine the working directory, and nonrecursive searches read standard input.

In the case of gf, most patterns usually use the recursive flag which will prevent gf to work as expected when piping data to it. This commit fixes this behavior, forcing grep to process stdin even when the recursive flag is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant