1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

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:
Nick Sayer 2000-05-11 17:01:52 +00:00
parent 08db2b40dd
commit e6121e72f6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60394

View File

@ -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;