>> 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
                p...@usa.net



Reply via email to