mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-25 13:41:45 +00:00
Formerly job.c.~104~
This commit is contained in:
parent
f84518396b
commit
86d4d7425b
1 changed files with 12 additions and 2 deletions
14
job.c
14
job.c
|
@ -1390,10 +1390,20 @@ construct_command_argv (line, restp, file)
|
||||||
char *line, **restp;
|
char *line, **restp;
|
||||||
struct file *file;
|
struct file *file;
|
||||||
{
|
{
|
||||||
char *shell = allocated_variable_expand_for_file ("$(SHELL)", file);
|
char *shell, *ifs;
|
||||||
char *ifs = allocated_variable_expand_for_file ("$(IFS)", file);
|
|
||||||
char **argv;
|
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);
|
argv = construct_command_argv_internal (line, restp, shell, ifs);
|
||||||
|
|
||||||
free (shell);
|
free (shell);
|
||||||
|
|
Loading…
Reference in a new issue