[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/9] Add library mode to source builtin
From: |
Chet Ramey |
Subject: |
Re: [PATCH 0/9] Add library mode to source builtin |
Date: |
Tue, 7 May 2024 14:14:18 -0400 |
User-agent: |
Mozilla Thunderbird |
On 5/7/24 1:42 PM, Kerin Millar wrote:
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.
The issue is whether one is needed at all, not whether or not one character
irritates you.
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's the standard behavior, with only a few exceptions.
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.
You can export CDPATH and get the same effect with `cd', or export PATH and
modify command search order.
--
``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/
- Re: [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, 2024/05/07
Re: [PATCH 0/9] Add library mode to source builtin,
Chet Ramey <=
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