Fix compatibility issue in sed. Do so by explicitely adding a
newline to the end of any -e argument. PR: bin/18474
This commit is contained in:
parent
08db2b40dd
commit
e6121e72f6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60394
@ -115,6 +115,7 @@ main(argc, argv)
|
||||
char *argv[];
|
||||
{
|
||||
int c, fflag;
|
||||
char *temp_arg;
|
||||
|
||||
(void) setlocale(LC_ALL, "");
|
||||
|
||||
@ -129,7 +130,10 @@ main(argc, argv)
|
||||
break;
|
||||
case 'e':
|
||||
eflag = 1;
|
||||
add_compunit(CU_STRING, optarg);
|
||||
temp_arg=xmalloc(strlen(optarg) + 2);
|
||||
strcpy(temp_arg, optarg);
|
||||
strcat(temp_arg, "\n");
|
||||
add_compunit(CU_STRING, temp_arg);
|
||||
break;
|
||||
case 'f':
|
||||
fflag = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user