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

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

Help message should not be written to stdout for `sh-` commands
This commit is contained in:
Mislav Marohnić
2016-11-25 19:06:01 +01:00
committed by GitHub

View File

@@ -109,7 +109,11 @@ case "$command" in
shift 1
if [ "$1" = --help ]; then
exec rbenv-help "$command"
if [[ "$command" == "sh-"* ]]; then
echo "rbenv help \"$command\""
else
exec rbenv-help "$command"
fi
else
exec "$command_path" "$@"
fi