GNU bug report logs -
#28306
grep: option to filter non-printable characters from contents
Previous Next
To reply to this bug, email your comments to 28306 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-grep <at> gnu.org
:
bug#28306
; Package
grep
.
(Thu, 31 Aug 2017 15:39:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Santiago R.R." <santiagorr <at> riseup.net>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Thu, 31 Aug 2017 15:39:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Dear grep upstream authors,
I'd like to forward this bug reported to debian
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498336
On Tue, 9 Sep 2008 11:07:33 +0200 Vincent Lefevre <vincent <at> vinc17.org> wrote:
…
>
> grep should have an option to filter non-printable characters from
> the contents (file contents, but also filenames -- see bug #42630)
> *before coloring*. The values could be "never", "always" and "auto",
> like with --color.
>
> Such an option would be useful because:
>
> 1. The option --binary-files is a heuristic only; the user may want
> to have more information on binary files anyway.
>
> 2. It is not even possible to write a wrapper script when coloring is
> used, because after coloring, it is not possible (or at least very
> difficult) to do the difference between escape sequences from grep
> and those from the original contents.
>
> Such non-printable characters could be either replaced by some
> locale-specific replacement character or transcoded.
>
> I wonder whether filtering should be the default when the output
> is connected to a terminal (and when POSIXLY_CORRECT is not set).
> It would not be worse than the default --binary-files=binary.
…
This option could be also useful to filter undesirable behaviors, such
as ringing the bell terminal (from stdin in this case):
printf '\a'x | grep x
What's your position on this?
Thanks,
-- Santiago
PS. As Vincent Lefevre says, this bug relates to filtering non-printable
characters from filenames:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=42630
Information forwarded
to
bug-grep <at> gnu.org
:
bug#28306
; Package
grep
.
(Fri, 01 Sep 2017 00:31:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 28306 <at> debbugs.gnu.org (full text, mbox):
Santiago R.R. wrote:
> What's your position on this?
Sounds like a reasonable option, though I think I might make it another form of
coloring rather than a separate option.
Severity set to 'wishlist' from 'normal'
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Tue, 31 Dec 2019 19:49:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.