News for hackers. Stuff that matters.
Re:Elegant Bash Conditionals by kludgeon on Tuesday March 02, 2021 @02:29PM (#26319348)
just use zsh. `if [[ -f file ]] {run this command} else {run that command}`

no closing `fi`, use multiline or single line, add an arbitrary number of elif statements. this only requires the short option is set in your z shell.

Re:Elegant Bash Conditionals by kludgeon on Tuesday March 02, 2021 @02:37PM (#26319471)
and I'd call most of this discussion flow control, not conditionals. Strictly speaking, conditionals are one of the primary benefits of zsh over bash imo.