components/bash/patches/bash42-041.patch
changeset 5518 c47fe0edc204
parent 5517 7758049098f4
child 5519 a02d4d12218f
equal deleted inserted replaced
5517:7758049098f4 5518:c47fe0edc204
     1 			     BASH PATCH REPORT
       
     2 			     =================
       
     3 
       
     4 Bash-Release:	4.2
       
     5 Patch-ID:	bash42-041
       
     6 
       
     7 Bug-Reported-by:	Andrey Borzenkov <[email protected]>
       
     8 Bug-Reference-ID:	<[email protected]>
       
     9 Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2012-12/msg00008.html
       
    10 
       
    11 Bug-Description:
       
    12 
       
    13 Process substitution incorrectly inherited a flag that inhibited using the
       
    14 (local) temporary environment for variable lookups if it was providing
       
    15 the filename to a redirection.  The intent the flag is to enforce the
       
    16 Posix command expansion ordering rules.
       
    17 
       
    18 Patch (apply with `patch -p0'):
       
    19 
       
    20 *** ../bash-4.2-patched/subst.c	2012-07-14 15:53:20.000000000 -0400
       
    21 --- subst.c	2012-12-02 22:26:54.000000000 -0500
       
    22 ***************
       
    23 *** 5125,5128 ****
       
    24 --- 5129,5136 ----
       
    25   #endif /* HAVE_DEV_FD */
       
    26   
       
    27 +   /* subshells shouldn't have this flag, which controls using the temporary
       
    28 +      environment for variable lookups. */
       
    29 +   expanding_redir = 0;
       
    30 + 
       
    31     result = parse_and_execute (string, "process substitution", (SEVAL_NONINT|SEVAL_NOHIST));
       
    32   
       
    33 *** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
       
    34 --- patchlevel.h	Thu Feb 24 21:41:34 2011
       
    35 ***************
       
    36 *** 26,30 ****
       
    37      looks for to find the patch level (for the sccs version string). */
       
    38   
       
    39 ! #define PATCHLEVEL 40
       
    40   
       
    41   #endif /* _PATCHLEVEL_H_ */
       
    42 --- 26,30 ----
       
    43      looks for to find the patch level (for the sccs version string). */
       
    44   
       
    45 ! #define PATCHLEVEL 41
       
    46   
       
    47   #endif /* _PATCHLEVEL_H_ */