mirror of
https://github.com/pyenv/pyenv.git
synced 2025-05-06 20:43:43 +00:00
Help message should not be written to stdout for sh-
commands (yyuu/pyenv#650)
This commit is contained in:
parent
9fdce5d069
commit
7860ad5268
1 changed files with 5 additions and 1 deletions
|
@ -109,7 +109,11 @@ case "$command" in
|
||||||
|
|
||||||
shift 1
|
shift 1
|
||||||
if [ "$1" = --help ]; then
|
if [ "$1" = --help ]; then
|
||||||
exec rbenv-help "$command"
|
if [[ "$command" == "sh-"* ]]; then
|
||||||
|
exec rbenv-help "$command" 1>&2
|
||||||
|
else
|
||||||
|
exec rbenv-help "$command"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
exec "$command_path" "$@"
|
exec "$command_path" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue