3 ms·
arithmetic evaluation is ((…)), $((…)) is arithmetic expansion. There’s no need for test(1) / [(1) or conditional expressions ([[…]]) if you’re doing arithmeti
by neuromanser 3y ago
arithmetic evaluation is ((…)), $((…)) is arithmetic expansion.
There’s no need for test(1) / [(1) or conditional expressions ([[…]]) if you’re doing arithmetic:
if ((1+1 == 2)); then …; fi