Mislav Marohnić 2e3ef01abb
Use readarray in bash v4+ to avoid rbenv init hanging
For just a handful of people, rbenv init would hang indefinitely. Turning on
debugging output suggested that the `read` expression to split PATH into a bash
array was hanging, but I could never reproduce this myself. Instead, this uses
bash v4+ `readarray` if it's available, or falls back to bash v3 `read` with the
default DELIM being a newline character. This will cause a regression if any PATH
entries contain a literal newline character, but hopefully people are not relying
on such paths.
2025-01-07 23:40:54 +01:00
..
2024-07-05 15:02:25 +02:00
2013-10-31 20:18:14 +02:00
2013-03-07 15:07:32 -05:00
2012-12-29 22:05:04 -06:00