projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c9e8b2
)
(construct_command_argv_internal): Notice newline inside '' string when
author
Roland McGrath
<roland@redhat.com>
Mon, 25 Apr 1994 23:31:55 +0000
(23:31 +0000)
committer
Roland McGrath
<roland@redhat.com>
Mon, 25 Apr 1994 23:31:55 +0000
(23:31 +0000)
RESTP is non-null.
job.c
patch
|
blob
|
history
diff --git
a/job.c
b/job.c
index cdc26124854d1d469c7d26ce86a03aec86be8129..59e945a02ce2a2defc898e72b8e49d8698c91b98 100644
(file)
--- 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;
}