From e3c49406e163d87f91676f62f68d9218e21b07df Mon Sep 17 00:00:00 2001 From: "Aaron W. Swenson" Date: Fri, 22 Apr 2011 06:45:10 -0400 Subject: Better comment as to why 'set -f' is there. --- postgresql.eselect | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgresql.eselect b/postgresql.eselect index 11216cd..8454284 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -50,6 +50,9 @@ linker() { local findings # Prevent passed patterns from being globbed + # If this module is run in /usr, '-name lib*' ends up globbing 'lib*', + # passing to 'find' the pattern '-name lib lib32 lib64' and find interprets + # those as path arguments causing failure. set -f findings=$(find "${source_dir}" -maxdepth 1 -mindepth 1 ${pattern}) set +f -- cgit v1.2.3-65-gdbad