1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 06:13:53 -05:00

Merge pull request #651 from yyuu/sh-help-stderr

Messages should not be written to stdout if the command is `sh-` command
This commit is contained in:
Yamashita, Yuu
2016-07-01 09:13:42 +09:00
committed by GitHub

View File

@@ -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