]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.2 direxpand with patch 26
authorChet Ramey <chet.ramey@case.edu>
Mon, 7 May 2012 20:32:44 +0000 (16:32 -0400)
committerChet Ramey <chet.ramey@case.edu>
Mon, 7 May 2012 20:32:44 +0000 (16:32 -0400)
execute_cmd.c
patchlevel.h

index 3f9c1507ba5e054a6e9f33a845d403fc1da29363..7432c85fe7b24041eabdad235e1a37f34a9913a8 100644 (file)
@@ -2205,7 +2205,7 @@ execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close)
      current shell environment. */
   if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
     {
-      lstdin = move_to_high_fd (0, 0, 255);
+      lstdin = move_to_high_fd (0, 1, -1);
       if (lstdin > 0)
        {
          do_piping (prev, pipe_out);
@@ -2251,7 +2251,9 @@ execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close)
       unfreeze_jobs_list ();
     }
 
+#if defined (JOB_CONTROL)
   discard_unwind_frame ("lastpipe-exec");
+#endif
 
   return (exec_result);
 }
index c8093cc177ea218b6a14ccdb708e16f004123c5c..b5a234ff8a1e36231073adede2d5a218ec45953f 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 25
+#define PATCHLEVEL 26
 
 #endif /* _PATCHLEVEL_H_ */