On 5/13/24 7:39 PM, Koichi Murase wrote:

* With this, `isolated_search_for_file()' falls back to local files in
the current working directory. I'm unsure about whether this is
intentional, but I think we should restrict the search in
BASH_SOURCE_PATH and shouldn't fall back to local files.

You can do this by temporarily turning off source_searches_cwd if
BASH_SOURCE_PATH is set.

In that case,
we need to make sure that `find_in_path_var()' returns NULL in the
case of empty BASH_SOURCE_PATH.

Do you mean BASH_SOURCE_PATH= ? That's the standard behavior of PATH-like
variables: a null element anywhere is equivalent to `.'. Does this
require a special case?


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to