On Sun, May 05, 2024 at 03:32:04PM -0400, Lawrence Velázquez wrote: > Much like the periodic requests for XDG-organized startup files, a > BASH_SOURCE_PATH might be convenient but is not groundbreaking and > probably doesn't merit significant changes to the shell. I'm not > even convinced it merits a new "source" option.
I don't really have any strong opinions on this issue, but the proposed patches seem a bit overkill-ish to me. The idea to add a BASH_SOURCE_PATH variable that gets searched before, or instead of, PATH when using the source builtin -- that sounds good. I don't really understand the concepts behind the rest of the discussion.