commit bash-20210107 snapshot

This commit is contained in:
Chet Ramey
2021-01-12 09:18:30 -05:00
parent 5a7a52eade
commit 63706353d7
11 changed files with 46 additions and 3156 deletions
+9
View File
@@ -3011,8 +3011,17 @@ eval_arith_for_expr (l, okp)
WORD_LIST *new;
intmax_t expresult;
int r;
char *expr, *temp;
#if 0 /* TAG: bash-5.2 */
expr = l->next ? string_list (l) : savestring (l->word->word);
temp = expand_arith_string (expr, Q_DOUBLE_QUOTES|Q_ARITH);
free (expr);
new = make_word_list (make_word (temp), (WORD_LIST *)NULL);
free (temp);
#else
new = expand_words_no_vars (l);
#endif
if (new)
{
if (echo_command_at_execute)