Re: [PATCH v2 5/8] builtins/source: parse the -i option
From:
Chet Ramey
Subject:
Re: [PATCH v2 5/8] builtins/source: parse the -i option
Date:
Wed, 15 May 2024 09:13:44 -0400
User-agent:
Mozilla Thunderbird
On 5/14/24 4:48 PM, Koichi Murase wrote:
However, at the same time, I think the new option could be justified
from the viewpoint of language design. If we have a new namespace
``BASH_SOURCE_PATH'' for the scripts to be sourced, it would be neat
to have an option to specify the namespace exclusively.
Should these be the default semantics for BASH_SOURCE_PATH? After all, if
you want to search the current directory, put "." into the value.
`unset -v var' is not required.
That was a POSIX invention as a compromise between implementations.
--
``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/