From 25d3ca7fdfa59ae9759dae36f7b30b89364d32f8 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Thu, 30 Jun 2016 09:48:00 +0000 Subject: [PATCH] Messages should not be written in stdout if the command is `sh-` command (fixes #650) --- libexec/pyenv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libexec/pyenv b/libexec/pyenv index 24d5210f..3b40d94e 100755 --- a/libexec/pyenv +++ b/libexec/pyenv @@ -122,7 +122,11 @@ case "$command" in shift 1 if [ "$1" = --help ]; then - exec pyenv-help "$command" + if [[ "$command" == "sh-"* ]]; then + exec pyenv-help "$command" 1>&2 + else + exec pyenv-help "$command" + fi else exec "$command_path" "$@" fi