From 4b006b9a403f59daee07d62fdc2553409872f14c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 19 Jul 2018 21:04:09 +0200 Subject: [PATCH] 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. --- subcommand | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5