bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 6/8] builtins/source: use source path in isolated mode


From: Chet Ramey
Subject: Re: [PATCH v2 6/8] builtins/source: use source path in isolated mode
Date: Tue, 14 May 2024 16:02:47 -0400
User-agent: Mozilla Thunderbird

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    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]