|
|
@ -1,6 +1,6 @@ |
|
|
|
--- a/execute_cmd.c
|
|
|
|
+++ b/execute_cmd.c
|
|
|
|
@@ -2202,7 +2202,11 @@ execute_pipeline (command, asynchronous,
|
|
|
|
@@ -2369,7 +2369,11 @@ execute_pipeline (command, asynchronous,
|
|
|
|
/* If the `lastpipe' option is set with shopt, and job control is not |
|
|
|
enabled, execute the last element of non-async pipelines in the |
|
|
|
current shell environment. */ |
|
|
@ -11,5 +11,5 @@ |
|
|
|
+#endif
|
|
|
|
+ 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) |