Bash-5.2 patch 12: fixes for compat mode leaving extglob enabled after command substitution

This commit is contained in:
Chet Ramey
2022-11-23 17:17:39 -05:00
parent a6435a3c50
commit c7bb74de78
6 changed files with 50 additions and 20 deletions
+1 -3
View File
@@ -3990,13 +3990,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);