Filename expansion is performed when the variable is referenced unquoted
already. There is really no need to call 'ls' on top of that, and even
less reason to wrap it all in 'eval'.
if [[ -d "${bindir}" ]]; then
pushd "${bindir}" &>/dev/null || die
- local binaries=$(eval ls ${RUBY_FAKEGEM_BINWRAP})
- for binary in $binaries; do
- ruby_fakegem_binwrapper $binary
+ for binary in ${RUBY_FAKEGEM_BINWRAP}; do
+ ruby_fakegem_binwrapper "${binary}"
done
popd &>/dev/null || die
fi