rcolebaugh / rpms / bash

Forked from rpms/bash 2 years ago
Clone

Blame bash-5.2-pipeline-exec.patch

Siteshwar Vashisht 803262
diff --git a/execute_cmd.c b/execute_cmd.c
Siteshwar Vashisht 803262
--- a/execute_cmd.c
Siteshwar Vashisht 803262
+++ b/execute_cmd.c
Siteshwar Vashisht 803262
@@ -5496,11 +5496,7 @@ execute_disk_command (words, redirects, command_line, pipe_in, pipe_out,
Siteshwar Vashisht 803262
     {
Siteshwar Vashisht 803262
       /* If we're optimizing out the fork (implicit `exec'), decrement the
Siteshwar Vashisht 803262
 	 shell level like `exec' would do. */
Siteshwar Vashisht 803262
-#if 0 /* TAG: bash-5.2 psmith 10/11/2020 */
Siteshwar Vashisht 803262
       if (nofork && pipe_in == NO_PIPE && pipe_out == NO_PIPE && (subshell_environment & SUBSHELL_PIPE) == 0)
Siteshwar Vashisht 803262
-#else
Siteshwar Vashisht 803262
-      if (nofork && pipe_in == NO_PIPE && pipe_out == NO_PIPE)
Siteshwar Vashisht 803262
-#endif
Siteshwar Vashisht 803262
 	adjust_shell_level (-1);
Siteshwar Vashisht 803262
 
Siteshwar Vashisht 803262
       maybe_make_export_env ();