]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
subcommand: Overhaul _gsu_print_available_commands().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 30 Aug 2014 16:47:50 +0000 (18:47 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 30 Aug 2014 16:47:50 +0000 (18:47 +0200)
This function is rather confused. It uses gsu_short_msg() to print
the header to stderr while the list of subcommands is printed to
stdout. This is "fixed" by executing all commands in a subshell and
redirecting stderr to stdout.

It's easier to just print everything to stdout. This patch also
renames the loop variable i to cmd, declares $count as a local
integer variable and switches to single quoted string constants.


No differences found