zgrep: handle "-f -" the same way that it works with grep
authorCarl Worth <cworth@cworth.org>
Fri, 9 Oct 2009 15:32:48 +0000 (17:32 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 9 Oct 2009 15:32:48 +0000 (17:32 +0200)
commit5b54db4546b84ec97ff57a62f8ddb98faacf77f2
tree2d2a34fb731876d064f9ef6cf7c770aa3a151ea0
parent98149fd7d5ed21e47b375d7dc109881a6ac3b4d1
zgrep: handle "-f -" the same way that it works with grep

Before this change, echo needle|zgrep -f - haystack.gz would not work.
* zgrep.in: When the pattern comes from stdin, redirect it to a
different file descriptor, since we're about to use stdin.
zgrep.in