[Bug 259197] xzgrep should present a message when fed a non-recognised file format

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 31 Dec 2025 02:32:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259197

--- Comment #5 from Craig Leres <leres@freebsd.org> ---
(In reply to Alexander Ziaee from comment #3)
I was talking about changing the behavior of the zgrep wrapper script, I would
think it to be desirable for it to emit an error when fed the wrong type of
encrypted file.

(In reply to Graham Perrin from comment #4)
I don't understand; the last command in #0 is different than the last command
in #4

Here's what I see:

ice 64 % cd /tmp
ice 65 % cp /var/run/motd test
ice 66 % grep Free test
FreeBSD 14.3-RELEASE-p6 (LBL) r23
Welcome to FreeBSD!
ice 67 % bzip2 test
ice 68 % xzgrep Free test.bz2 
ice 69 % xzcat test.bz2 | grep Free
xzcat: test.bz2: File format not recognized

-- 
You are receiving this mail because:
You are the assignee for the bug.