]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.2 patch 27
authorChet Ramey <chet.ramey@case.edu>
Mon, 7 May 2012 20:23:18 +0000 (16:23 -0400)
committerChet Ramey <chet.ramey@case.edu>
Mon, 7 May 2012 20:23:18 +0000 (16:23 -0400)
patchlevel.h
subst.c

index b5a234ff8a1e36231073adede2d5a218ec45953f..5e31cd4a0a1eb9198ab67c2bfe92b97a0b44d6d3 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 26
+#define PATCHLEVEL 27
 
 #endif /* _PATCHLEVEL_H_ */
diff --git a/subst.c b/subst.c
index c9a06788f905c074710b7538a6c78a49abaa5360..b6476d8a79f17cb66881c91c70f80762f85aa922 100644 (file)
--- a/subst.c
+++ b/subst.c
@@ -4166,7 +4166,7 @@ match_wpattern (wstring, indices, wstrlen, wpat, mtype, sp, ep)
   simple = (wpat[0] != L'\\' && wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'[');
 #if defined (EXTENDED_GLOB)
   if (extended_glob)
-    simple |= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
+    simple &= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
 #endif
 
   /* If the pattern doesn't match anywhere in the string, go ahead and