NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/49872: sed functions 'i' and 'a' discard leading white space
The following reply was made to PR bin/49872; it has been noted by GNATS.
From: Yorick Hardy <yorickhardy%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/49872: sed functions 'i' and 'a' discard leading white space
Date: Mon, 4 Apr 2016 23:21:11 +0200
This seems to restore the previous behaviour, but I am not 100% sure
that it does not break anything else.
--
Kind regards,
Yorick Hardy
Index: usr.bin/sed/compile.c
===================================================================
RCS file: /cvsroot/src/usr.bin/sed/compile.c,v
retrieving revision 1.43
diff -u -r1.43 compile.c
--- usr.bin/sed/compile.c 26 Jun 2014 02:14:32 -0000 1.43
+++ usr.bin/sed/compile.c 4 Apr 2016 21:19:05 -0000
@@ -747,7 +747,6 @@
while (cu_fgets(lbuf, sizeof(lbuf), NULL)) {
op = s = text + size;
p = lbuf;
- EATSPACE();
for (esc_nl = 0; *p != '\0'; p++) {
if (*p == '\\' && p[1] != '\0' && *++p == '\n')
esc_nl = 1;
Home |
Main Index |
Thread Index |
Old Index