summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-04-25 23:31:55 +0000
committerRoland McGrath <roland@redhat.com>1994-04-25 23:31:55 +0000
commitdd841ded6f3060bac34d0fcd3bd93e33e3edb035 (patch)
treef40eced56418a91ba1c803eb7c4b0c5fc8a1d2e6 /job.c
parent3c9e8b266a12ee95f479461c9b425833fa7d134c (diff)
downloadgunmake-dd841ded6f3060bac34d0fcd3bd93e33e3edb035.tar.gz
(construct_command_argv_internal): Notice newline inside '' string when
RESTP is non-null.
Diffstat (limited to 'job.c')
-rw-r--r--job.c6
1 files changed, 6 insertions, 0 deletions
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;
}