You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
735 B

  1. Index: bash-4.4/execute_cmd.c
  2. ===================================================================
  3. --- bash-4.4.orig/execute_cmd.c
  4. +++ bash-4.4/execute_cmd.c
  5. @@ -2459,7 +2459,11 @@ execute_pipeline (command, asynchronous,
  6. /* If the `lastpipe' option is set with shopt, and job control is not
  7. enabled, execute the last element of non-async pipelines in the
  8. current shell environment. */
  9. - if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
  10. + if (lastpipe_opt &&
  11. +#if defined(JOB_CONTROL)
  12. + job_control == 0 &&
  13. +#endif
  14. + asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
  15. {
  16. lstdin = move_to_high_fd (0, 1, -1);
  17. if (lstdin > 0)