[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/9] Add library mode to source builtin
From: |
Kerin Millar |
Subject: |
Re: [PATCH 0/9] Add library mode to source builtin |
Date: |
Tue, 07 May 2024 18:42:08 +0100 |
User-agent: |
Cyrus-JMAP/3.11.0-alpha0-443-g0dc955c2a-fm-20240507.001-g0dc955c2 |
On Tue, 7 May 2024, at 3:27 PM, Chet Ramey wrote:
> On 5/5/24 3:39 PM, Kerin Millar wrote:
>
>> Such is the extent to which I concur that I find even -l to be irritating.
>
> The option character isn't important. Is it useful to have an additional
If it were of no importance at all, once might then choose the character
entirely at random. That's not usually what happens.
> option to `source' that forces it to use $BASH_SOURCE_PATH, or should that
> behave like other builtins ($CDPATH, $BASH_LOADABLES_PATH)?
If BASH_SOURCE_PATH is to be able to take its value from the environment, it
might be useful. That is, to have a means of opting in may be sensible from a
backward-compatibility standpoint, whether it be in the form of an option
character, a shell option or something else. Otherwise, probably not. I'm
thinking of the theoretical case in which a user exports BASH_SOURCE_PATH then
runs existing scripts - not necessarily of their own design - that weren't
counting on this feature to ever exist. On the other hand, bash already has a
cornucopia of options and I'm uncertain as to how realistic this concern is.
There are various ways for the environment to influence the behaviour of a bash
script as it stands. I would be interested to know what others think.
--
Kerin Millar
- [PATCH 9/9] variables: define default BASH_LIBRARIES_PATH, (continued)
- Re: [PATCH 0/9] Add library mode to source builtin, Lawrence Velázquez, 2024/05/05
- Re: [PATCH 0/9] Add library mode to source builtin, Chet Ramey, 2024/05/07
- Re: [PATCH 0/9] Add library mode to source builtin,
Kerin Millar <=
- Re: [PATCH 0/9] Add library mode to source builtin, Chet Ramey, 2024/05/07
- Re: [PATCH 0/9] Add library mode to source builtin, Kerin Millar, 2024/05/07
- Re: [PATCH 0/9] Add library mode to source builtin, Chet Ramey, 2024/05/07
- Re: [PATCH 0/9] Add library mode to source builtin, Matheus Afonso Martins Moreira, 2024/05/07
Re: Re: [PATCH 0/9] Add library mode to source builtin, Matheus Afonso Martins Moreira, 2024/05/05
[PATCH v2 0/8] Add isolated mode to source builtin, Matheus Afonso Martins Moreira, 2024/05/13