zgrep: with -f SPECIAL, read SPECIAL just once
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Mar 2016 22:20:53 +0000 (15:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Mar 2016 22:27:41 +0000 (15:27 -0700)
commitf0bda0b75a28f6fd2069600f19f7eafa569545e6
treeb474eaf35dc09a801ee1a31a0e85a6e9dc2244a2
parent30cc4148677e088e8e135936f3c494249c2bf514
zgrep: with -f SPECIAL, read SPECIAL just once

Problem reported by Fulvio Scapin in: http://bugs.gnu.org/22945
* NEWS: Document this.
* tests/zgrep-f: Add a test.
Adjust a test to cover the case of more than one line in -f's input.
* zgrep.in (with_filename): With -f FILE, if FILE is stdin or not
a regular file, copy it into a temporary and use the temporary.
NEWS
tests/zgrep-f
zgrep.in