GNU bug report logs - #36820
grep "[[:cntrl:]]" /proc/1/cmdline works on 2.20 but not 3.3

Previous Next

Package: grep;

Reported by: Jeff Chua <jeff.chua.linux <at> gmail.com>

Date: Sat, 27 Jul 2019 00:15:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 36820 <at> debbugs.gnu.org (full text, mbox):

From: Jeff Chua <jeff.chua.linux <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 36820 <at> debbugs.gnu.org
Subject: Re: bug#36820: grep "[[:cntrl:]]" /proc/1/cmdline works on 2.20 but
 not 3.3
Date: Mon, 29 Jul 2019 19:30:36 +0800
[Message part 1 (text/plain, inline)]
> No, as that would mean the default output of grep would not be text, and
this could mess up terminals etc. This is partly why -a has never been
the default. If you want -a behavior you can use -a.

Ok, thanks for the clarification.

My best.,
Jeff


On Mon, Jul 29, 2019 at 6:59 AM Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> On 7/28/19 3:04 AM, Jeff Chua wrote:
> > Then if it's binary file, grep should default to "-a"
>
> No, as that would mean the default output of grep would not be text, and
> this could mess up terminals etc. This is partly why -a has never been
> the default. If you want -a behavior you can use -a.
>
>
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 274 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.