commit bash-20080221 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:19:15 -05:00
parent 57a071246a
commit 35ee8ea050
30 changed files with 1090 additions and 74 deletions
+2 -1
View File
@@ -2551,7 +2551,8 @@ execute_cond_node (cond)
arg1 = cond_expand_word (cond->left->op, 0);
if (arg1 == 0)
arg1 = nullstr;
arg2 = cond_expand_word (cond->right->op, rmatch ? 2 : (patmatch ? 1 : 0));
arg2 = cond_expand_word (cond->right->op,
(rmatch && shell_compatibility_level > 31) ? 2 : (patmatch ? 1 : 0));
if (arg2 == 0)
arg2 = nullstr;