Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grep: don't auto matically decompress (#799)
* When run on a binary file, grep should search it as a binary file * Regular grep should not decompress a file (this version was decompressing based on file extension) * Adopt the -Z flag from OpenBSD which makes grep behave as zgrep * Sync POD manual %gzip -9k ar # create ar.gz %perl grep ar ar.gz # original filename stored in binary grep: ar.gz: binary file matches %perl grep perl ar.gz # no match %perl grep -Z perl ar.gz # match after decompression #!/usr/bin/perl License: perl
- Loading branch information