From: Andre Noll Date: Thu, 19 Jul 2018 19:04:09 +0000 (+0200) Subject: subcommand: Don't print error messages to stdout. X-Git-Url: http://git.tuebingen.mpg.de/libdai.git/tree?a=commitdiff_plain;h=4b006b9a403f59daee07d62fdc2553409872f14c;p=gsu.git subcommand: Don't print error messages to stdout. 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. --- diff --git a/subcommand b/subcommand index 5e55580..561ca1a 100644 --- a/subcommand +++ b/subcommand @@ -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 }