mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-04 10:50:50 +02:00
Bash-5.2 patch 12: fixes for compat mode leaving extglob enabled after command substitution
This commit is contained in:
+1
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user