News for hackers. Stuff that matters.
Re:Test, [, and [[ (2020) by neuromanser on Thursday November 23, 2023 @09:50AM (#38393314)
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

Re:Test, [, and [[ (2020) by darrenf on Thursday November 23, 2023 @10:47AM (#38394015)
Even better, and TIL. Thanks!
Re:Test, [, and [[ (2020) by Too on Thursday November 23, 2023 @01:16PM (#38395727)
The fact that seasoned developers have to discuss how to write 1+1 correctly, says everything you need to know about the language.