Thomas Nikolajsen <thomas.nikolajsen@mail.dk> added the comment:
Use case could be:
zgrep -l XXX *.gz
Translating that like 'for X; do zcat "$X" | grep -l XXX; done'
will not show correct file name.
Also 'zgrep kernel /var/log/messages.0.gz /dev/null'
will have similar problem.
_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2120>
_____________________________________________________