mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Fix sed(1) behaviour for 'G' when given null holdspace by making sure it
contains a \n. PR: misc/26153 Submitted by: ashp Reviewed by: mike Obtained from: NetBSD MFC after: 2 days
This commit is contained in:
parent
6e4caefe33
commit
acf9afb7a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93860
@ -148,6 +148,8 @@ process()
|
||||
cspace(&PS, hs, hsl, REPLACE);
|
||||
break;
|
||||
case 'G':
|
||||
if (hs == NULL)
|
||||
cspace(&HS, "\n", 1, REPLACE);
|
||||
cspace(&PS, hs, hsl, 0);
|
||||
break;
|
||||
case 'h':
|
||||
|
Loading…
Reference in New Issue
Block a user