Help message should not be written to stdout for sh- commands (yyuu/pyenv#650)

This commit is contained in:
Yamashita, Yuu 2016-07-01 00:08:19 +00:00
parent 9fdce5d069
commit 7860ad5268

View file

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