On Wednesday 01 November 2006 19:33, Roy Marples wrote:
> Repeat-By:
>         cat < <(ls)
>         /dev/fd/62: No such file or directory
>
> Fix:
> --- execute_cmd.c       2006-11-01 18:32:36 +0000
> +++ execute_cmd.c       2006-11-01 18:32:42 +0000
> @@ -2672,6 +2672,7 @@
>
>       do_piping (pipe_in, pipe_out);
>
> +     subshell_environment = 0;
>       if (async)
>         subshell_environment |= SUBSHELL_ASYNC;
>       if (pipe_in != NO_PIPE || pipe_out != NO_PIPE)
>

Hmmm, I just got this again with bash-3.2_p5 with the above patch. After 
futher review, it appears I missed another one.

Attached is the patch extended a little.
I can't see any more instances of this in execute_cmd.c

Thanks

-- 
Roy Marples <[EMAIL PROTECTED]>
Gentoo/Linux/FreeBSD Developer (baselayout, networking)
--- execute_cmd.c	2006-11-14 17:27:11 +0000
+++ execute_cmd.c	2006-11-14 17:28:30 +0000
@@ -2672,6 +2672,7 @@
 
 	  do_piping (pipe_in, pipe_out);
 
+	  subshell_environment = 0;
 	  if (async)
 	    subshell_environment |= SUBSHELL_ASYNC;
 	  if (pipe_in != NO_PIPE || pipe_out != NO_PIPE)
@@ -3418,6 +3419,7 @@
   /* A subshell is neither a login shell nor interactive. */
   login_shell = interactive = 0;
 
+  subshell_environment = 0;
   if (async)
     subshell_environment |= SUBSHELL_ASYNC;
   if (pipe_in != NO_PIPE || pipe_out != NO_PIPE)
_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to