3 ms·
I don't fully understand what's going on here, but note that arithmetic expansion is for stuff like $((6 * 7)). There's no arithmetic expansion involved in your
by jwilk 2y ago
I don't fully understand what's going on here, but note that arithmetic expansion is for stuff like $((6 * 7)). There's no arithmetic expansion involved in your or
Calzifer's examples.
- deleted 2y ago[deleted]
- jolmg 2y agoYou mean this part of my comment: >> The shell performs [...] arithmetic expansion, command substitution [...] on those words. > [...] and that command substitution is peformed after arithmetic expansion in `[[` [...] You're right. That doesn't apply. I was equating "arithmetic expansion" with "evaluation of arithmetic expressions", but I see now the former is specifically about `$(())`.