diff options
author | Paul Smith <psmith@gnu.org> | 2006-03-10 02:20:45 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2006-03-10 02:20:45 +0000 |
commit | 6d8d9b74d9c50cb07fe952ac0929f618e4280a55 (patch) | |
tree | 2ba40ec88c9a4f3445fbc8f6dc6a3de7760ac604 /job.c | |
parent | afc4906acaeb7191e4ec085d7be4ca5b036b821d (diff) | |
download | gunmake-6d8d9b74d9c50cb07fe952ac0929f618e4280a55.tar.gz |
Numerous updates to tests for issues found on Cygwin and Windows.
Revert a fix for $? including non-existent files as it shows a bug
in the Linux kernel build. Give them a release to fix this.
Add some changes from Eli Z. for Windows changes.
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -2770,9 +2770,13 @@ construct_command_argv_internal (char *line, char **restp, char *shell, /* Some shells do not work well when invoked as 'sh -c xxx' to run a command line (e.g. Cygnus GNUWIN32 sh.exe on WIN32 systems). In these cases, run commands via a script file. */ - if (just_print_flag) - ; /* Do nothing here. */ - if ((no_default_sh_exe || batch_mode_shell) && batch_filename_ptr) { + if (just_print_flag) { + /* Need to allocate new_argv, although it's unused, because + start_job_command will want to free it and its 0'th element. */ + new_argv = (char **) xmalloc(2 * sizeof (char *)); + new_argv[0] = xstrdup (""); + new_argv[1] = NULL; + } else if ((no_default_sh_exe || batch_mode_shell) && batch_filename_ptr) { int temp_fd; FILE* batch = NULL; int id = GetCurrentProcessId(); |