diff options
author | Roland McGrath <roland@redhat.com> | 1994-04-25 23:31:55 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1994-04-25 23:31:55 +0000 |
commit | dd841ded6f3060bac34d0fcd3bd93e33e3edb035 (patch) | |
tree | f40eced56418a91ba1c803eb7c4b0c5fc8a1d2e6 | |
parent | 3c9e8b266a12ee95f479461c9b425833fa7d134c (diff) | |
download | make-dd841ded6f3060bac34d0fcd3bd93e33e3edb035.tar.gz |
(construct_command_argv_internal): Notice newline inside '' string when
RESTP is non-null.
-rw-r--r-- | job.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |