summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-08-20 18:20:20 +0000
committerRoland McGrath <roland@redhat.com>1992-08-20 18:20:20 +0000
commit2ebdf6de853cec7a136fcb556df7ce51f1f776b3 (patch)
tree0f39e8333fbcc6a7af6ab3915cea324029a3fbc2
parentdb7633eac4fc8bd6b797cc21220f8d2696f48514 (diff)
downloadgunmake-2ebdf6de853cec7a136fcb556df7ce51f1f776b3.tar.gz
Formerly job.c.~81~
-rw-r--r--job.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/job.c b/job.c
index 1aac751..6ae1156 100644
--- a/job.c
+++ b/job.c
@@ -465,9 +465,9 @@ start_job_command (child)
/* There may be some preceding whitespace left if there
was nothing but a backslash on the first line. */
p = next_token (p);
-
+
/* Figure out an argument list from this command line. */
-
+
{
char *end;
argv = construct_command_argv (p, &end, child->file);
@@ -480,6 +480,15 @@ start_job_command (child)
}
}
+ if (touch_flag && !recursive)
+ {
+ /* Go on to the next command. It might be the recursive one.
+ We construct ARGV only to find the end of the command line. */
+ free (argv[0]);
+ free ((char *) argv);
+ argv = 0;
+ }
+
if (argv == 0)
{
/* This line has no commands. Go to the next. */