pyenv/libexec
Leo Cassarani 1d687ac734 Fix incorrect formatting of rbenv-help output under MAWK
In systems that use the MAWK interpreter (the default AWK installed with
Ubuntu), the output of `rbenv help <command>` would have no line breaks.
The issue is fixed by changing `gsub` to `sub` in the snippet of awk
commands that are used to extract documentation comments.

I suspect the bug is something to do with the way the '^' and '$'
characters are interpreted by different AWK interpreters (per-line vs
per-string anchors).

If I understand correctly, the purpose of trim() is to remove all line
breaks from the start and end of each sections of a command's
documentation, in which case `sub` should serve the same purpose.
2013-01-05 16:55:19 +00:00
..
rbenv Tweak rbenv --version output 2012-12-13 11:26:39 -06:00
rbenv---version rbenv 0.4.0 2013-01-04 12:27:26 -06:00
rbenv-commands Improve syntax for inline documentation and allow for multi-line usage 2012-12-29 12:06:20 -06:00
rbenv-completions Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-exec Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-global Improve syntax for inline documentation and allow for multi-line usage 2012-12-29 12:06:20 -06:00
rbenv-help Fix incorrect formatting of rbenv-help output under MAWK 2013-01-05 16:55:19 +00:00
rbenv-hooks Usage consistency 2012-12-30 16:00:53 -06:00
rbenv-init Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-local "per-project" -> "application-specific" 2013-01-03 10:00:10 -06:00
rbenv-prefix Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-rehash typo in docs 2013-01-04 23:26:01 +01:00
rbenv-root Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-sh-rehash Run hash -r after rbenv rehash when shell integration is enabled 2012-12-28 10:59:10 -06:00
rbenv-sh-shell "per-project" -> "application-specific" 2013-01-03 10:00:10 -06:00
rbenv-shims new-style documentation for most commands 2012-12-29 23:34:53 +01:00
rbenv-version Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-file Prefer .ruby-version to .rbenv-version for reading local versions 2012-12-30 18:35:20 -06:00
rbenv-version-file-read Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-file-write Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-name Tweak the ruby- prefix warning 2012-12-31 09:58:10 -06:00
rbenv-version-origin Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-versions Accept "ruby-" version prefix but print a warning to stderr 2012-12-30 19:01:30 -06:00
rbenv-whence Usage consistency 2012-12-30 16:00:53 -06:00
rbenv-which "binary" -> "executable" 2013-01-03 10:06:12 -06:00