aboutsummaryrefslogtreecommitdiffstats
path: root/subst.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2012-05-07 16:23:18 -0400
committerChet Ramey <chet.ramey@case.edu>2012-05-07 16:23:18 -0400
commit91717ba3b24d1ed49c47b35b88cf3d44c2eb0dc3 (patch)
tree3ed9284d6fa4c13d5d29d7c5d148e75482deb296 /subst.c
parent723479771597fa6dbbe6353aedf18e90f80afab5 (diff)
downloadandroid_external_bash-91717ba3b24d1ed49c47b35b88cf3d44c2eb0dc3.tar.gz
android_external_bash-91717ba3b24d1ed49c47b35b88cf3d44c2eb0dc3.tar.bz2
android_external_bash-91717ba3b24d1ed49c47b35b88cf3d44c2eb0dc3.zip
Bash-4.2 patch 27
Diffstat (limited to 'subst.c')
-rw-r--r--subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subst.c b/subst.c
index c9a0678..b6476d8 100644
--- 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