mirror of
https://github.com/mirror/make.git
synced 2025-02-04 08:40:27 +08:00
* job.c (construct_command_argv_internal): Avoid extra backslash
in batch-mode Unixy shells. Under DB_JOBS, display the contents of the batch file.
This commit is contained in:
parent
c7f2c384ee
commit
4c995f262a
@ -1,3 +1,9 @@
|
||||
2008-09-30 David Russo <d-russo@ti.com> (tiny change)
|
||||
|
||||
* job.c (construct_command_argv_internal): Avoid extra backslash
|
||||
in batch-mode Unixy shells. Under DB_JOBS, display the contents
|
||||
of the batch file.
|
||||
|
||||
2008-05-31 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* README.W32.template: Remove obsolete text about non-support for
|
||||
|
6
job.c
6
job.c
@ -2746,6 +2746,10 @@ construct_command_argv_internal (char *line, char **restp, char *shell,
|
||||
if (PRESERVE_BSNL)
|
||||
{
|
||||
*(ap++) = '\\';
|
||||
/* Only non-batch execution needs another backslash,
|
||||
because it will be passed through a recursive
|
||||
invocation of this function. */
|
||||
if (!batch_mode_shell)
|
||||
*(ap++) = '\\';
|
||||
*(ap++) = '\n';
|
||||
}
|
||||
@ -2807,6 +2811,8 @@ construct_command_argv_internal (char *line, char **restp, char *shell,
|
||||
fputs (command_ptr, batch);
|
||||
fputc ('\n', batch);
|
||||
fclose (batch);
|
||||
DB (DB_JOBS, (_("Batch file contents:%s\n\t%s\n"),
|
||||
!unixy_shell ? "\n\t@echo off" : "", command_ptr));
|
||||
|
||||
/* create argv */
|
||||
new_argv = xmalloc(3 * sizeof (char *));
|
||||
|
Loading…
Reference in New Issue
Block a user