]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
subcommand: Don't print error messages to stdout.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 19 Jul 2018 19:04:09 +0000 (21:04 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 17 Sep 2020 18:15:54 +0000 (20:15 +0200)
If an invalid command name was given, we print the list of available
commands, followed by an error message. The list of commands is
sent to stdout while the error message goes to stderr. This is a bit
unfortunate, so print both to stderr instead.

subcommand

index 5e55580013dad9ec224e8c11a8e191b18c00428e..561ca1a062a16fa1fd7025be7d5f95c4df33bab6 100644 (file)
@@ -881,6 +881,6 @@ gsu()
        ret=-$E_GSU_BAD_COMMAND
        result="$arg"
        gsu_err_msg
-       _gsu_print_available_commands
+       _gsu_print_available_commands 1>&2
        exit 1
 }