ad88bdee0c
Collapsing arithmetic expansion is incorrect when the inner arithmetic expansion is a part of a parameter expansion. Test case: unset a echo $((3 + ${a:=$((4 + 5))})) echo $a Old result: 12 (4 + 5) New result: 12 9 Based on commit bb777a6 from git://git.kernel.org/pub/scm/utils/dash/dash.git by Herbert Xu function old new delta readtoken1 3180 3163 -17 Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
var1.right | ||
var1.tests | ||
var2.right | ||
var2.tests | ||
var3.right | ||
var3.tests | ||
var_bash1.right | ||
var_bash1.tests | ||
var_bash2.right | ||
var_bash2.tests | ||
var_bash3.right | ||
var_bash3.tests | ||
var_bash4.right | ||
var_bash4.tests | ||
var_bash5.right | ||
var_bash5.tests | ||
var_leak.right | ||
var_leak.tests | ||
var_posix1.right | ||
var_posix1.tests | ||
var-do-not-collapse-arithmetic-expansion-at-parse-time.right | ||
var-do-not-collapse-arithmetic-expansion-at-parse-time.tests | ||
var-do-not-expand-tilde-in-parameter-expansion-in-quotes.right | ||
var-do-not-expand-tilde-in-parameter-expansion-in-quotes.tests | ||
var-expand-tilde-in-parameter-expansion.right | ||
var-expand-tilde-in-parameter-expansion.tests |