GNU bug report logs - #63780
Reversing the grep message output type matching binary files (without the -a option added) changed from stdout to stderr

Previous Next

Package: grep;

Reported by: "2773414454" <2773414454 <at> qq.com>

Date: Mon, 29 May 2023 04:56:02 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: L A Walsh <coreutils <at> tlinx.org>
Cc: 2773414454 <at> qq.com, 63780 <at> debbugs.gnu.org
Subject: bug#63780: Reversing the grep message output type matching binary files (without the -a option added) changed from stdout to stderr
Date: Fri, 2 Jun 2023 15:17:33 -0700
On 6/1/23 22:36, L A Walsh wrote:

> Perhaps it would be a good idea for grep to provide such filtering
> (displaying <00><AH>, or such) for non-ascii data?

You mean, migrate some of less's functionality into 'grep'? I suppose 
something like that might work, if someone put a lot of time into it, 
and carefully considered the backward compatibility issues, and tried 
things out on some real use cases. I don't have the time myself.

> I have a command to restore my tty settings to the value they
> were when I logged on.

That's not enough to address the security issues.

> Nevertheless, displaying <filename>: matches, without the text doesn't
> seem to pose any security risks.

Yes, and grep does that now. The only issue is whether to send that 
summary information to stdout or to stderr.

We seem to be going around in circles, so I'll let you have the last 
word if you like.




This bug report was last modified 1 year and 357 days ago.

Previous Next


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