--- /usr/share/eselect/modules/postgresql.eselect 2011-04-22 11:12:48.000000000 +0200 +++ /usr/share/eselect/modules/postgresql.eselect.new 2011-04-22 11:13:37.076128597 +0200 @@ -47,8 +47,13 @@ local target_dir=$3 local suffix=$4 local link_source + local findings + + set -f + findings=$(find "${source_dir}" -maxdepth 1 -mindepth 1 ${pattern}) + set +f - for link_source in $(find "${source_dir}" -maxdepth 1 -mindepth 1 ${pattern}) ; do + for link_source in ${findings} ; do local link_target="${target_dir%/}/$(basename ${link_source})${suffix}" # For good measure, remove target before creating the symlink @@ -194,7 +199,7 @@ echo "${B_PATH}/${x}/postgresql" >> "${E_PATH}"/active.links # Linker works for files linker "${B_PATH}/${x}/postgresql-${SLOT}/${x}" \ - "-name lib*" "${B_PATH}/${x}" + '-name lib*' "${B_PATH}/${x}" fi done