1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 22:33:52 -05:00

Add tests for rbenv PATH and RBENV_HOOK_PATH handling

This commit is contained in:
Mislav Marohnić
2014-10-19 14:34:27 +02:00
parent 07d675350f
commit bf39d88d11
2 changed files with 31 additions and 1 deletions

View File

@@ -1,2 +1,9 @@
#!/usr/bin/env bash
eval "echo \$$1"
# Usage: rbenv echo [-F<char>] VAR
if [[ $1 == -F* ]]; then
sep="${1:2}"
echo "${!2}" | tr "${sep:-:}" $'\n'
else
echo "${!1}"
fi