pyenv/test/libexec/pyenv-echo

9 lines
137 B
Text
Raw Normal View History

# Usage: pyenv echo [-F<char>] VAR
if [[ $1 == -F* ]]; then
sep="${1:2}"
echo "${!2}" | tr "${sep:-:}" $'\n'
else
echo "${!1}"
fi