1
0
Fork 0
mirror of https://github.com/pyenv/pyenv.git synced 2025-01-10 10:11:39 +00:00
pyenv/libexec/rbenv-commands
Andreas Johansson 6938692ca2 Fix argument that cannot be sent to bash via env
/usr/bin/env seems to have problems with arguments to bash on some
platforms. To bypass this, use set -e instead.
2011-08-12 11:33:45 +02:00

12 lines
189 B
Bash
Executable file

#!/usr/bin/env bash
set -e
shopt -s nullglob
{ for path in ${PATH//:/$'\n'}; do
for command in "${path}/rbenv-"*; do
echo "${command##*rbenv-}"
done
done
} | sort | uniq