How can I convert a string containing glob characters such as
/var/lib/gems/*/bin
into a colon-separated string of filenames (i.e. PATH com
without saving IFS and command substitution
dirs=(/var/lib/gems/*/bin) ; IFS=: eval 'dirs="${dirs[*]}"'