News for hackers. Stuff that matters.
Re:Elegant Bash Conditionals by anderskaseorg on Tuesday March 02, 2021 @09:28PM (#26323980)
Curly braces are POSIX and work fine in dash. (Perhaps when testing you forgot these restrictions, which are the same as in bash: there must be whitespace after {, and a newline or semicolon before }.)

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...

Re:Elegant Bash Conditionals by cb321 on Wednesday March 03, 2021 @06:13AM (#26326974)
You are right. Apologies. Seemingly from this [1], quoting such braces was initially recommended.

[1] https://www.cs.ait.ac.th/~on/O/oreilly/unix/ksh/appa_02.htm