sh
sh copied to clipboard
syntax: add option for balancing case parentheses
shfmt currently always removes the optional left parenthesis on case, which is part of the base POSIX sh language. Although nobody likes to type it on the command-line, the balanced form of case does have the benefit of, well, being balanced and not confusing generic parenthesis-highlight programs. I want to use it.