summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-06-25 20:03:56 +0000
committerRoland McGrath <roland@redhat.com>1993-06-25 20:03:56 +0000
commit86d4d7425b2882903b1ee21ef12f36e033123356 (patch)
tree7f55a9845b86db4246af0c1d4bacac235e9aacfe /job.c
parentf84518396b4bb4374964e8e515be0f27b05af4cd (diff)
downloadgunmake-86d4d7425b2882903b1ee21ef12f36e033123356.tar.gz
Formerly job.c.~104~
Diffstat (limited to 'job.c')
-rw-r--r--job.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/job.c b/job.c
index 4fefeec..ee10f06 100644
--- a/job.c
+++ b/job.c
@@ -1390,10 +1390,20 @@ construct_command_argv (line, restp, file)
char *line, **restp;
struct file *file;
{
- char *shell = allocated_variable_expand_for_file ("$(SHELL)", file);
- char *ifs = allocated_variable_expand_for_file ("$(IFS)", file);
+ char *shell, *ifs;
char **argv;
+ {
+ /* Turn off --warn-undefined-variables while we expand SHELL and IFS. */
+ int save = warn_undefined_variables_flag;
+ warn_undefined_variables_flag = 0;
+
+ shell = allocated_variable_expand_for_file ("$(SHELL)", file);
+ ifs = allocated_variable_expand_for_file ("$(IFS)", file);
+
+ warn_undefined_variables_flag = save;
+ }
+
argv = construct_command_argv_internal (line, restp, shell, ifs);
free (shell);