Roman Rakus 87dc31
			     BASH PATCH REPORT
Roman Rakus 87dc31
			     =================
Roman Rakus 87dc31
Roman Rakus 87dc31
Bash-Release:	4.2
Roman Rakus 87dc31
Patch-ID:	bash42-027
Roman Rakus 87dc31
Roman Rakus 87dc31
Bug-Reported-by:	Mike Frysinger <vapier@gentoo.org>
Roman Rakus 87dc31
Bug-Reference-ID:	<201204211243.30163.vapier@gentoo.org>
Roman Rakus 87dc31
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00134.html
Roman Rakus 87dc31
Roman Rakus 87dc31
Bug-Description:
Roman Rakus 87dc31
Roman Rakus 87dc31
When the `extglob' shell option is enabled, pattern substitution does not
Roman Rakus 87dc31
work correctly in the presence of multibyte characters.
Roman Rakus 87dc31
Roman Rakus 87dc31
Patch (apply with `patch -p0'):
Roman Rakus 87dc31
Roman Rakus 87dc31
*** ../bash-4.2-patched/subst.c	2012-03-11 17:52:57.000000000 -0400
Roman Rakus 87dc31
--- subst.c	2012-04-22 16:19:10.000000000 -0400
Roman Rakus 87dc31
***************
Roman Rakus 87dc31
*** 4167,4171 ****
Roman Rakus 87dc31
  #if defined (EXTENDED_GLOB)
Roman Rakus 87dc31
    if (extended_glob)
Roman Rakus 87dc31
!     simple |= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
Roman Rakus 87dc31
  #endif
Roman Rakus 87dc31
  
Roman Rakus 87dc31
--- 4167,4171 ----
Roman Rakus 87dc31
  #if defined (EXTENDED_GLOB)
Roman Rakus 87dc31
    if (extended_glob)
Roman Rakus 87dc31
!     simple &= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
Roman Rakus 87dc31
  #endif
Roman Rakus 87dc31
  
Roman Rakus 87dc31
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
Roman Rakus 87dc31
--- patchlevel.h	Thu Feb 24 21:41:34 2011
Roman Rakus 87dc31
***************
Roman Rakus 87dc31
*** 26,30 ****
Roman Rakus 87dc31
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 87dc31
  
Roman Rakus 87dc31
! #define PATCHLEVEL 26
Roman Rakus 87dc31
  
Roman Rakus 87dc31
  #endif /* _PATCHLEVEL_H_ */
Roman Rakus 87dc31
--- 26,30 ----
Roman Rakus 87dc31
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 87dc31
  
Roman Rakus 87dc31
! #define PATCHLEVEL 27
Roman Rakus 87dc31
  
Roman Rakus 87dc31
  #endif /* _PATCHLEVEL_H_ */