unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44362: Grep pipe doc needs to warn about --null
@ 2020-10-31 20:03 積丹尼 Dan Jacobson
  2020-11-01 13:21 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-10-31 20:03 UTC (permalink / raw)
  To: 44362

(info "(emacs) Grep Searching") says

        Your command need not simply run ‘grep’; you can use any shell
     command that produces output in the same format.  For instance, you can
     chain ‘grep’ commands, like this:

          grep -nH -e foo *.el | grep bar | grep toto

OK, but it also needs to mention:

To have this currently work, be sure to remove the "--null" currently
added to today's prompt,

    Run grep (like this): grep --color -nH --null -e

Else you will end up with

    Binary file (standard input) matches

emacs-version "27.1"





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#44362: Grep pipe doc needs to warn about --null
  2020-10-31 20:03 bug#44362: Grep pipe doc needs to warn about --null 積丹尼 Dan Jacobson
@ 2020-11-01 13:21 ` Lars Ingebrigtsen
  2020-11-01 19:59   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-01 13:21 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 44362

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> (info "(emacs) Grep Searching") says
>
>         Your command need not simply run ‘grep’; you can use any shell
>      command that produces output in the same format.  For instance, you can
>      chain ‘grep’ commands, like this:
>
>           grep -nH -e foo *.el | grep bar | grep toto
>
> OK, but it also needs to mention:
>
> To have this currently work, be sure to remove the "--null" currently
> added to today's prompt,
>
>     Run grep (like this): grep --color -nH --null -e

I don't think the manual can warn you about all invalid things a user
may decide to put in the command line.  The --null is part of the
default command line, so I see your point, but I don't think mentioning
this stuff in the user manual would make much sense, and I'm closing
this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#44362: Grep pipe doc needs to warn about --null
  2020-11-01 13:21 ` Lars Ingebrigtsen
@ 2020-11-01 19:59   ` 積丹尼 Dan Jacobson
  0 siblings, 0 replies; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-11-01 19:59 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 44362

I'll make the change for you.

But I checked on
https://www.gnu.org/software/emacs/
https://www.gnu.org/software/tasklist/howto-volunteer.html
and can't find where I can edit the source (hopefully like it is easy to do on
GitHub too.)

>>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:
LI> 積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

>> (info "(emacs) Grep Searching") says
>> 
>> Your command need not simply run ‘grep’; you can use any shell
>> command that produces output in the same format.  For instance, you can
>> chain ‘grep’ commands, like this:
>> 
>> grep -nH -e foo *.el | grep bar | grep toto
>> 
>> OK, but it also needs to mention:
>> 
>> To have this currently work, be sure to remove the "--null" currently
>> added to today's prompt,
>> 
>> Run grep (like this): grep --color -nH --null -e

LI> I don't think the manual can warn you about all invalid things a user
LI> may decide to put in the command line.  The --null is part of the
LI> default command line, so I see your point, but I don't think mentioning
LI> this stuff in the user manual would make much sense, and I'm closing
LI> this bug report.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-01 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-31 20:03 bug#44362: Grep pipe doc needs to warn about --null 積丹尼 Dan Jacobson
2020-11-01 13:21 ` Lars Ingebrigtsen
2020-11-01 19:59   ` 積丹尼 Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).