https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259197
--- Comment #10 from Craig Leres <[email protected]> --- > I don't think it is a good idea to remove the -f flag from the wrapper script. To be clear, I never said anything about removing the -f flag from the wrapper. > Without the flag one would get the warnings for the non-xz files, but they > wouldn't be passed to stdout. It sounds like you're saying if the user makes the mistake of using xzgrep on a bzip2 file, they should not receive an error. (And they probably won't receive any output either!) > However, upstream has a way to deal with the situation: it invokes other > programs, depending on the file ending: So if the user runs xzgrep on a bzip2 file, bzip2 is used to decompress the file? Why even have wrappers installed for bzegrep, bzfgrep, bzgrep, lzegrep, lzfgrep, lzgrep, xzegrep, xzfgrep, xzgrep, zegrep, zfgrep, zgrep, zstdegrep, zstdfgrep, or zstdgrep? > Something similar could be implemented in our wrapper script if one really > wants to address the issue. That sounds like a change that is way beyond the scope of this PR. -- You are receiving this mail because: You are the assignee for the bug.
