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
..
2012-12-13 11:26:39 -06:00
2013-01-04 12:27:26 -06:00
2012-12-29 22:05:04 -06:00
2012-12-29 22:05:04 -06:00
2012-12-30 16:00:53 -06:00
2012-12-29 22:05:04 -06:00
2012-12-29 22:05:04 -06:00
2013-01-04 23:26:01 +01:00
2012-12-29 22:05:04 -06:00
2012-12-29 22:05:04 -06:00
2012-12-29 22:05:04 -06:00
2012-12-29 22:05:04 -06:00
2012-12-29 22:05:04 -06:00
2012-12-30 16:00:53 -06:00
2013-01-03 10:06:12 -06:00