From dd841ded6f3060bac34d0fcd3bd93e33e3edb035 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 25 Apr 1994 23:31:55 +0000 Subject: (construct_command_argv_internal): Notice newline inside '' string when RESTP is non-null. --- job.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v1.2.3