GNU bug report logs -
#44409
Example in manual no longer works
Previous Next
Full log
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
On November 3, 2020 9:47:37 AM GMT+02:00, "積丹尼 Dan Jacobson" <jidanni <at> jidanni.org> wrote:
> $ grep --color -nH --null -e a /etc/motd
> /etc/motd:2:The programs included with the Debian GNU/Linux system are
> free software;
> /etc/motd:3:the exact distribution terms for each program are
> described in the...
> $ grep --color -nH --null -e a /etc/motd | grep x
> Binary file (standard input) matches
The example in the manual doesn't mention /etc/motd of any other binary file. It uses text files, where this issue doesn't exist.
If you are seeking information for how to use Grep with binary files, you should be looking in the Grep manual, not the Emacs manual.
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
> EZ> And what is the significance of --null for this purpose?
>
> grep -nH -e
>
> is not the current emacs prompt. It is an older emacs prompt.
>
> The current emacs prompt is
>
> grep --color -nH --null -e
Yes, but you need to edit that prompt anyway in order to type the command with a pipe, so the original prompt doesn't matter much.
I see no problem here that needs tk be fixed.
This bug report was last modified 4 years and 198 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.