FreeBSD Bugzilla – Attachment 144962 Details for
Bug 192108
[patch] sed(1) bug in "addr1,+N" ranges
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for review
process.c.diff (text/plain), 857 bytes, created by
Rudolf Čejka
on 2014-07-25 09:48:39 UTC
(
hide
)
Description:
Proposed patch for review
Filename:
MIME Type:
Creator:
Rudolf Čejka
Created:
2014-07-25 09:48:39 UTC
Size:
857 bytes
patch
obsolete
>--- process.c.orig 2014-07-25 11:15:23.060018631 +0200 >+++ process.c 2014-07-25 11:20:38.682146179 +0200 >@@ -272,7 +272,9 @@ > */ > #define MATCH(a) \ > ((a)->type == AT_RE ? regexec_e((a)->u.r, ps, 0, 1, psl) : \ >- (a)->type == AT_LINE ? linenum == (a)->u.l : lastline()) >+ (a)->type == AT_LINE ? linenum == (a)->u.l : \ >+ (a)->type == AT_RELLINE ? linenum - cp->startline == (a)->u.l : \ >+ lastline()) > > /* > * Return TRUE if the command applies to the current line. Sets the start >@@ -292,9 +294,7 @@ > cp->startline = 0; > lastaddr = 1; > r = 1; >- } else if (linenum - cp->startline <= cp->a2->u.l) >- r = 1; >- else if ((cp->a2->type == AT_LINE && >+ } else if ((cp->a2->type == AT_LINE && > linenum > cp->a2->u.l) || > (cp->a2->type == AT_RELLINE && > linenum - cp->startline > cp->a2->u.l)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192108
: 144962 |
144995