mirror of
https://github.com/rbenv/rbenv.git
synced 2025-01-19 20:51:38 +01: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:
commit
1b751261ce
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
|
||||||
|
echo "rbenv help \"$command\""
|
||||||
|
else
|
||||||
|
exec rbenv-help "$command"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
exec "$command_path" "$@"
|
exec "$command_path" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue