Opening braces in functions

Very minor, trivial changes to some select shell scripts.

Place opening braces that were on a line of their own on the same line as function definitions, which is predominantly the case (numbers below).

# An AWK program that reports these inconsistencies in numbers.
awk '$1 ~ /^{/ { nl++ }; /[-_A-Za-z0-9] \(\) { ?/ { space++; line++ }; /[-_A-Za-z0-9]\(\) { ?/ { nospace++; line++ }; END { print "Opening brace on a line of its own:\t" nl; print "==========================================\nOpening brace on the same line:\t\t" line "\nWith whitespace before parentheses:\t" space; print "No whitespace before parentheses:\t" nospace }' *.sh
Opening brace on a line of its own:	35
==========================================
Opening brace on the same line:		114
With whitespace before parentheses:	50
No whitespace before parentheses:	64

Merge request reports

Loading