Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 383237
Collapse All | Expand All

(-)bash-4.2.orig/execute_cmd.c (+4 lines)
Lines 2202-2208 execute_pipeline (command, asynchronous, Link Here
2202
  /* If the `lastpipe' option is set with shopt, and job control is not
2202
  /* If the `lastpipe' option is set with shopt, and job control is not
2203
     enabled, execute the last element of non-async pipelines in the
2203
     enabled, execute the last element of non-async pipelines in the
2204
     current shell environment. */
2204
     current shell environment. */
2205
#if defined (JOB_CONTROL)
2205
  if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
2206
  if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
2207
#else
2208
  if (lastpipe_opt && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
2209
#endif /* JOB_CONTROL */
2206
    {
2210
    {
2207
      lstdin = move_to_high_fd (0, 0, 255);
2211
      lstdin = move_to_high_fd (0, 0, 255);
2208
      if (lstdin > 0)
2212
      if (lstdin > 0)

Return to bug 383237