FreeBSD Bugzilla – Attachment 175892 Details for
Bug 213474
sed behavior change with a/i/c operands.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proof-of-concept: provide a compile-time flag for GNU compatibility
sed.gnu_compat.diff (text/plain), 775 bytes, created by
Pedro F. Giffuni
on 2016-10-18 01:34:33 UTC
(
hide
)
Description:
Proof-of-concept: provide a compile-time flag for GNU compatibility
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2016-10-18 01:34:33 UTC
Size:
775 bytes
patch
obsolete
>Index: usr.bin/sed/Makefile >=================================================================== >--- usr.bin/sed/Makefile (revision 307528) >+++ usr.bin/sed/Makefile (working copy) >@@ -8,6 +8,10 @@ > > WARNS?= 2 > >+.if ${MK_GNU_SUPPORT} != "no" >+CFLAGS+=-DGNUSED_COMPAT >+.endif >+ > .if ${MK_TESTS} != "no" > SUBDIR+= tests > .endif >Index: usr.bin/sed/compile.c >=================================================================== >--- usr.bin/sed/compile.c (revision 307528) >+++ usr.bin/sed/compile.c (working copy) >@@ -746,6 +746,9 @@ > while (cu_fgets(lbuf, sizeof(lbuf), NULL) != NULL) { > op = s = text + size; > p = lbuf; >+#ifndef GNUSED_COMPAT >+ EATSPACE(); >+#endif > for (esc_nl = 0; *p != '\0'; p++) { > if (*p == '\\' && p[1] != '\0' && *++p == '\n') > esc_nl = 1;
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 213474
:
175892
|
175985