diff --git a/libexec/rbenv-help b/libexec/rbenv-help index 6dd6fd6e..f15e83fd 100755 --- a/libexec/rbenv-help +++ b/libexec/rbenv-help @@ -64,8 +64,8 @@ collect_documentation() { } function trim(str) { - gsub(/^\n*/, "", str) - gsub(/\n*$/, "", str) + sub(/^\n*/, "", str) + sub(/\n*$/, "", str) return str }