rbenv/test/libexec/rbenv-echo
2014-10-19 14:35:36 +02:00

9 lines
157 B
Bash
Executable file

#!/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