Date: Fri, 21 Aug 2020 17:24:18 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 248813] bzgrep ignores --no-filename flag Message-ID: <bug-248813-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248813 Bug ID: 248813 Summary: bzgrep ignores --no-filename flag Product: Base System Version: 12.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: moviuro+freebsd@gmail.com Steps: echo '1.1.1.1' > file1; echo '1.1.1.0' > file2 bzip2 -k file1 ; bzip2 -k file2 bzgrep --no-filename 1.1.1 file*bz2 Expected: flag is honored 1.1.1.1 1.1.1.0 Actual: flag is ignored file1.bz2:1.1.1.1 file2.bz2:1.1.1.0 Patch below: --- /usr/bin/bzgrep.orig 2020-08-21 19:10:56.072359000 +0200 +++ /usr/bin/bzgrep 2020-08-21 19:08:19.219508000 +0200 @@ -114,6 +114,9 @@ exec ${grep} -V ;; -*) + case $1 in + --no-filename) silent=3D1 ;; + esac grep_args=3D"${grep_args} $1" shift ;; FWIW; the bzgrep from https://sourceware.org/bzip2/ also has troubles with = that specific --no-filename flag. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248813-227>