Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2025 02:32:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259197] xzgrep should present a message when fed a non-recognised file format
Message-ID:  <bug-259197-227-OjbnUAe2tE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259197-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259197-227-OjbnUAe2tE>