> Or even > > PATH=${BASH_SEARCH_PATH-$PATH} . file > > without the need to add any options to . or to source.
If you do that, you'll interfere with command search in the sourced file. They will not be able to find the programs that would normally be in the PATH if the variable is overridden prior to sourcing the script. > But maybe that too pedestrian? I don't know about "pedestrian" but it's certainly not equivalent to the proposed solution.