GNU bug report logs -
#25675
Errors in gnu manual 4.3
Previous Next
Reported by: bamber ward <dlward134 <at> gmail.com>
Date: Fri, 10 Feb 2017 14:47:01 UTC
Severity: normal
Tags: moreinfo
Done: Assaf Gordon <assafgordon <at> gmail.com>
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 25675 in the body.
You can then email your comments to 25675 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-sed <at> gnu.org
:
bug#25675
; Package
sed
.
(Fri, 10 Feb 2017 14:47:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
bamber ward <dlward134 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-sed <at> gnu.org
.
(Fri, 10 Feb 2017 14:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
manual 4.3
Here is some errors I have found in this manual ( Well I think that they
are errors)
\B
$ echo "abc %-= def." | sed 's/\w/X/g'
aXbXc X%X-X=X dXeXf.X # should \B not \w
7-12
superfluous : next in program?
7-17
# The two lines are identical. Undo the effect of the n command.
should be N command
7-18
# Print the first of the duplicated lines
should be second
7-20 first script
leaves blanks at end.
Say file have final 3 blank lines. On the last line N fails, exits script
and prints out
pattern space. The following seems to correct this:
-----
#!/bin/sed -f
# on empty lines, join with next
# Note there is a star in the regexp
:x
$ b c # added b c
/^\n*$/ {
N
bx
}
# now, squeeze all '\n'
:c // added
s/^\(\n\)*/\1/ # only apply to completely blank lines
~/sed/code-> sedsed -d -f ./cat_s.sed ./cat_s.txt
PATT:$
HOLD:$
COMM::x
COMM:$ b c
COMM:/^\n*$/ {
COMM:N
PATT:\n$
HOLD:$
COMM:b x
COMM:$ b c
COMM:/^\n*$/ {
COMM:N
PATT:\n\ntwo blank lines above$
HOLD:$
COMM:b x
COMM:$ b c
COMM:/^\n*$/ {
COMM::c
COMM:s/^\(\n\)*/\1/
PATT:\ntwo blank lines above$
HOLD:$
two blank lines above
PATT:apple$
HOLD:$
COMM::x
COMM:$ b c
COMM:/^\n*$/ {
COMM::c
COMM:s/^\(\n\)*/\1/
PATT:apple$
HOLD:$
apple
PATT:pear$
HOLD:$
COMM::x
COMM:$ b c
COMM:/^\n*$/ {
COMM::c
COMM:s/^\(\n\)*/\1/
PATT:pear$
HOLD:$
pear
PATT:five blank lines follow$
HOLD:$
COMM::x
COMM:$ b c
COMM:/^\n*$/ {
COMM::c
COMM:s/^\(\n\)*/\1/
PATT:five blank lines follow$
HOLD:$
five blank lines follow
PATT:$
HOLD:$
COMM::x
COMM:$ b c
COMM:/^\n*$/ {
COMM:N
PATT:\n$
HOLD:$
COMM:b x
COMM:$ b c
COMM:/^\n*$/ {
COMM:N
PATT:\n\n$
HOLD:$
COMM:b x
COMM:$ b c
COMM:/^\n*$/ {
COMM:N
PATT:\n\n\n$
HOLD:$
COMM:b x
COMM:$ b c
COMM:/^\n*$/ {
COMM:N
PATT:\n\n\n\n$
HOLD:$
COMM:b x
COMM:$ b c
COMM:/^\n*$/ {
COMM:N
PATT:\n\n\n\n\n$
HOLD:$
COMM:b x
COMM:$ b c
COMM:s/^\(\n\)*/\1/
PATT:\n$
HOLD:$
~/sed/code->
~/sed/code->
Feedback
I think that the descriptions of some of the commands leaves out essential
details.
For example:
Is it legal to follow label with a space. ( yes)
Should r and w be followed by a space ( I always put one)
Should w be the last flag to s ( yes)
I don't like the command overview. I would prefer the full description of
each command in one place.
Best Wishes
David L Ward
Reply
Forward
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-sed <at> gnu.org
:
bug#25675
; Package
sed
.
(Fri, 17 Feb 2017 02:25:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 25675 <at> debbugs.gnu.org (full text, mbox):
Hello,
> On Feb 10, 2017, at 09:46, bamber ward <dlward134 <at> gmail.com> wrote:
>
> Here is some errors I have found in this manual ( Well I think that they
> are errors)
Thank you for the report.
Please see the previous response here:
http://lists.gnu.org/archive/html/sed-devel/2017-02/msg00020.html
regards,
- assaf
Information forwarded
to
bug-sed <at> gnu.org
:
bug#25675
; Package
sed
.
(Tue, 09 Oct 2018 13:20:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 25675 <at> debbugs.gnu.org (full text, mbox):
tags 25675 moreinfo
close 25675
stop
Hello,
With no further replies, I'm opting to close this bug report.
Discussion can continue by replying to this thread,
and we can re-open it when more details (or patches) are provided.
regards,
- assaf
Added tag(s) moreinfo.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 09 Oct 2018 13:20:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
25675 <at> debbugs.gnu.org and bamber ward <dlward134 <at> gmail.com>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 09 Oct 2018 13:20:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 07 Nov 2018 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 229 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.