@@ -, +, @@ --- libs/core.bash.in | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/libs/core.bash.in +++ a/libs/core.bash.in @@ -69,6 +69,16 @@ die() { # Find module and echo its filename. Die if module doesn't exist. find_module() { local modname=$1 modpath + + if [[ ${modname} == *.eselect && -f ${modname} ]]; then + echo "${modname}" + return + fi + + if [[ ${modname} == */* ]]; then + die -q "Can't load module ${modname}" + fi + for modpath in "${ESELECT_MODULES_PATH[@]}"; do if [[ -f ${modpath}/${modname}.eselect ]]; then echo "${modpath}/${modname}.eselect" --