gf icon indicating copy to clipboard operation
gf copied to clipboard

Force stdin when grepping piped data

Open fersingb opened this issue 5 years ago • 0 comments

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.

fersingb avatar Nov 16 '20 03:11 fersingb