mirror of
https://github.com/mirror/make.git
synced 2025-01-01 07:50:52 +08:00
(construct_command_argv_internal): Notice newline inside '' string when
RESTP is non-null.
This commit is contained in:
parent
3c9e8b266a
commit
dd841ded6f
6
job.c
6
job.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user