GNU bug report logs -
#48948
grep documentation feedback
Previous Next
Reported by: David Apps <sppa.divad <at> virgin.net>
Date: Thu, 10 Jun 2021 19:52:01 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48948 in the body.
You can then email your comments to 48948 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-grep <at> gnu.org
:
bug#48948
; Package
grep
.
(Thu, 10 Jun 2021 19:52:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
David Apps <sppa.divad <at> virgin.net>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Thu, 10 Jun 2021 19:52:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I hope that you are well.
Thank you for your work on this great software.
I have some feedback about the document at the following address:
http://www.gnu.org/software/grep/manual/grep.html
When quoting from this document, I have removed the non-ASCII
characters. The characters that I have removed were left and right
single quotation marks.
1. In the section "3.3 The Backslash Character and Special Expressions":
\<
Match the empty string at the beginning of word.
\>
Match the empty string at the end of word.
Perhaps changing "of word" to "of a word" would be more consistent with
the language elsewhere in the document.
2. In the section "3.6 Basic vs Extended Regular Expressions":
In basic regular expressions the meta-characters ?, +, {, |, (, and )
lose their special meaning; instead use the backslashed versions \?, \+,
\{, \|, \(, and \).
Should } and \} appear in these lists?
3. In the section "4 Usage":
$ grep -n -- 'f.*\.c$' *g*.h /dev/null
The other examples do not begin with $. Perhaps remove $ for greater
consistency.
4. In the section "4 Usage", perhaps the answer to question 3 would be
better if the examples used -* in place of * to search for files that
begin with -.
Thank you.
David
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Thu, 10 Jun 2021 23:11:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
David Apps <sppa.divad <at> virgin.net>
:
bug acknowledged by developer.
(Thu, 10 Jun 2021 23:11:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 48948-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 6/10/21 12:42 PM, David Apps via Bug reports for GNU grep wrote:
> Perhaps changing "of word" to "of a word"
Good idea, thanks.
> In basic regular expressions the meta-characters ?, +, {, |, (, and )
> lose their special meaning; instead use the backslashed versions \?, \+,
> \{, \|, \(, and \).
>
> Should } and \} appear in these lists?
No, as '}' is not a meta-character in EREs. The '}' case is different
and this is discussed in the next sentence.
> 3. In the section "4 Usage":
>
> $ grep -n -- 'f.*\.c$' *g*.h /dev/null
>
> The other examples do not begin with $. Perhaps remove $ for greater
> consistency.
That's easy enough. Also, I noticed that the surrounding explanation is
a bit wrong, so I fixed that too.
> 4. In the section "4 Usage", perhaps the answer to question 3 would be
> better if the examples used -* in place of * to search for files that
> begin with -.
The problem almost always occurs with patterns that begin with "*" and
unexpectedly match file names beginning with "-", so in some sense it's
better to leave this example as-is so that it's more-typical.
I installed the attached patch to implement the above. Thanks for your
feedback.
[0001-doc-improve-examples-and-wording.patch (text/x-patch, attachment)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 09 Jul 2021 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.