>> Why not add a -p option to '.' to specify the path to search.
>> That is
>> . -p "${BASH_SEARCH_PATH-${PATH}}" file
>> would work if someone decided to use the
>> BASH_SOURCE_PATH var name to store the path to use
>> (defaulting to $PATH if that one isn't set).
> Believe it or not, I had thought of that as well.
> It sidesteps the whole BASH_SOURCE_PATH
> variable brouhaha altogether.
I think this is a really good solution. I hadn't thought of it.
Users can even make an alias to set a default for themselves.
-- Matheus