pyenv/test/libexec/rbenv-echo

10 lines
157 B
Text
Raw Normal View History

2013-03-07 20:05:49 +00:00
#!/usr/bin/env bash
# Usage: rbenv echo [-F<char>] VAR
if [[ $1 == -F* ]]; then
sep="${1:2}"
echo "${!2}" | tr "${sep:-:}" $'\n'
else
echo "${!1}"
fi