Bash-4.2 patch 27
This commit is contained in:
parent
7234797715
commit
91717ba3b2
2 changed files with 2 additions and 2 deletions
2
subst.c
2
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue