fixes for extended glob in compat mode; fix for brackets appearing in nested parameter expansions

This commit is contained in:
Chet Ramey
2022-10-07 17:46:16 -04:00
parent 38d9d3590f
commit 22f21b760e
13 changed files with 125 additions and 19 deletions
+1 -3
View File
@@ -3993,13 +3993,11 @@ execute_cond_node (cond)
else
#endif /* COND_REGEXP */
{
int oe;
oe = extended_glob;
extended_glob = 1;
result = binary_test (cond->op->word, arg1, arg2, TEST_PATMATCH|TEST_ARITHEXP|TEST_LOCALE)
? EXECUTION_SUCCESS
: EXECUTION_FAILURE;
extended_glob = oe;
extended_glob = extglob_flag;
}
if (arg1 != nullstr)
free (arg1);