bash functions: enclosing the body in braces vs. parentheses
Why are braces used by default to enclose the function body instead of parentheses? The body of a function can be any compound command. This is typically { list; }, but three other forms of compound commands are technically allowed: (list), ((expression)), and [[ expression ]]. C and languages in the C family like C++, …