(construct_command_argv_internal): Notice newline inside '' string when

RESTP is non-null.
This commit is contained in:
Roland McGrath 1994-04-25 23:31:55 +00:00
parent 3c9e8b266a
commit dd841ded6f

6
job.c
View File

@ -1244,6 +1244,12 @@ construct_command_argv_internal (line, restp, shell, ifs)
/* Inside a string, just copy any char except a closing quote. */
if (*p == '\'')
instring = 0;
else if (*p == '\n' && restp != NULL)
{
/* End of the command line. */
*restp = p;
goto end_of_line;
}
else
*ap++ = *p;
}