Re:Elegant Bash Conditionals
by a1369209993 on Tuesday March 02, 2021 @05:16PM
(#26321781)
I use:
if command_or_condition
then branch
more_branch
fi
Given the relationship between ; and newline, and the positions of required ;s in if/then/fi, I assumed that was intended.
I always inline the `then`, which requires a semicolon:
If I was forced to use the traditional format, I'd be definitely annoyed :)