bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH v2 5/8] builtins/source: parse the -i option


From: Koichi Murase
Subject: Re: [PATCH v2 5/8] builtins/source: parse the -i option
Date: Thu, 16 May 2024 00:31:18 +0900

2024年5月15日(水) 22:21 Chet Ramey <chet.ramey@case.edu>:
> On 5/14/24 7:15 PM, Koichi Murase wrote:
> > In case we talk about different designs, I assume the following one:
> >
> > * `source name' searches the files in BASH_SOURCE_PATH, PATH, and the
> > current working directory.
>
> No, I'm proposing that this behavior be the default, without the option:

Yes, that's my intent. I mean "without the option" by the above `source name'.

> > * `source -i name', if it would be added, searches the files in
> > BASH_SOURCE_PATH (excluding PATH and the current working directory
> > unless `.' is included in BASH_SOURCE_PATH).

Maybe it was not clear to use `source name' and `source -i name' to
describe the idea. I meant I assumed the search domain being

* BASH_SOURCE_PATH + PATH + PWD without the option
* BASH_SOURCE_PATH with the option (if the option is supported)



reply via email to

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