*** ../bash-20221015/subst.c 2022-10-18 10:47:33.000000000 -0500 --- subst.c 2022-10-20 11:41:07.000000000 -0500 *************** *** 3825,3828 **** --- 3825,3832 ---- #endif + /* We don't perform process substitution in arithmetic expressions, so don't + bother checking for it. */ + #define ARITH_EXP_CHAR(s) (s == '$' || s == '`' || s == CTLESC || s == '~') + /* If there are any characters in STRING that require full expansion, then call FUNC to expand STRING; otherwise just perform quote *************** *** 4034,4038 **** while (string[i]) { ! if (EXP_CHAR (string[i])) break; else if (string[i] == '\'' || string[i] == '\\' || string[i] == '"') --- 4038,4042 ---- while (string[i]) { ! if (ARITH_EXP_CHAR (string[i])) break; else if (string[i] == '\'' || string[i] == '\\' || string[i] == '"')