#1012139 bzgrep: mishandles filenames with \n: unterminated `s' command

Package:
bzip2
Source:
bzip2
Description:
high-quality block-sorting file compressor - utilities
Submitter:
Jakub Wilk
Date:
2022-05-30 19:15:03 UTC
Severity:
minor
#1012139#3
Date:
2022-05-30 19:10:03 UTC
From:
To:
bzip2 mishandles files that have names with embedded newlines:

   $ echo x | bzip2 > "$(printf "foo\nbar1.bz2")"
   $ echo x | bzip2 > "$(printf "foo\nbar2.bz2")"
   $ bzgrep x *
   sed: -e expression #1, char 7: unterminated `s' command
   sed: -e expression #1, char 7: unterminated `s' command