bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63780: �ظ��� bug#63780: Reversing the grep message output type match


From: Paul Jackson
Subject: bug#63780: �ظ��� bug#63780: Reversing the grep message output type matching binary files (without the -a option added) changed from stdout to stderr
Date: Mon, 29 May 2023 20:13:46 -0500
User-agent: Cyrus-JMAP/3.9.0-alpha0-441-ga3ab13cd6d-fm-20230517.001-ga3ab13cd

>> So my original intention is to ask the community whether there is a better 
>> way to modify the grep3.7 source code. 

I doubt it makes sense to change (revert, in this case) grep's interface for 
all other users,
for the benefit of one user who has limited ways of adapting to the current 
interface.

Can you code a wrapper for grep, whether in bash/zsh shell or in C or similar, 
that is also
called "grep" and appears on the PATH before the "real" grep?  This wrapper 
could invoke
the "real" grep, fixup the one issue of concern here, that the "binary file 
matches" error
message might come out on the "wrong" (for your use case) file descriptor, and 
leave all
the other grep work to whatever the currently installed "real" grep does.

-- 
                Paul Jackson
                pj@usa.net





reply via email to

[Prev in Thread] Current Thread [Next in Thread]