bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31280: zgrep foo binaryfilepath says "Binary file (standard input) m


From: Jim Avera
Subject: bug#31280: zgrep foo binaryfilepath says "Binary file (standard input) matches"
Date: Thu, 26 Apr 2018 21:33:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Thunderbird/57.0

Hello,

There is a bug in zgrep (gzip) 1.6 where the output from zgrep incorrectly says  "(standard input") instead the file path name given on the command line.

This happens if the input data is not actually compressed, but is binary data.

STEPS TO REPRODUCE:

perl -wE 'print "foobar",("\x0" x 1000)' > /tmp/testfile.dat  # make a binary file
zgrep foobar /tmp/testfile.dat

RESULTS:

Binary file (standard input) matches

EXPECTED RESULTS:

Binary file /tmp/testfile.dat matches






reply via email to

[Prev in Thread] Current Thread [Next in Thread]