It was pointed out by Congmao Wang that the example hello.bash script
prints only the first subcommand and exits if it is called with an
invalid subcommand and set -e is set. This is due to the "let count++"
statement which returns 1 in the first iteration of the loop since
count is zero.
This patch changes the statement to "let ++count" which returns zero
in all cases.
printf 'Available commands:\n'
for cmd in $gsu_cmds; do
printf '%s' "$cmd"
- let count++
+ let ++count
if (($count % 4)); then
printf '\t'
((${#cmd} < 8)) && printf '\t'