mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-11-25 13:21:06 +01:00
Depending on bash version, the expression `${var/$HOME\//~/}` will not have
effect because the "~" character in the replacement expression is expanded.
The updated approach is a bit of a mouthful, but it avoids using "~" in a
substitution pattern, while also guarding against values of HOME that are
blank or when HOME is literally just "/".
|
||
|---|---|---|
| .. | ||
| fixtures | ||
| stubs | ||
| tmp | ||
| arguments.bats | ||
| build.bats | ||
| cache.bats | ||
| checksum.bats | ||
| compiler.bats | ||
| definitions.bats | ||
| fetch.bats | ||
| hooks.bats | ||
| installer.bats | ||
| mirror.bats | ||
| output.bats | ||
| rbenv.bats | ||
| test_helper.bash | ||
| version.bats | ||