From: Roland McGrath Date: Mon, 25 Apr 1994 23:31:55 +0000 (+0000) Subject: (construct_command_argv_internal): Notice newline inside '' string when X-Git-Tag: 3.70.4~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd841ded6f3060bac34d0fcd3bd93e33e3edb035;p=platform%2Fupstream%2Fmake.git (construct_command_argv_internal): Notice newline inside '' string when RESTP is non-null. --- diff --git a/job.c b/job.c index cdc2612..59e945a 100644 --- a/job.c +++ b/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; }