mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-23 00:40:48 +00:00
1d687ac734
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. |
||
---|---|---|
.. | ||
rbenv | ||
rbenv---version | ||
rbenv-commands | ||
rbenv-completions | ||
rbenv-exec | ||
rbenv-global | ||
rbenv-help | ||
rbenv-hooks | ||
rbenv-init | ||
rbenv-local | ||
rbenv-prefix | ||
rbenv-rehash | ||
rbenv-root | ||
rbenv-sh-rehash | ||
rbenv-sh-shell | ||
rbenv-shims | ||
rbenv-version | ||
rbenv-version-file | ||
rbenv-version-file-read | ||
rbenv-version-file-write | ||
rbenv-version-name | ||
rbenv-version-origin | ||
rbenv-versions | ||
rbenv-whence | ||
rbenv-which |