[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/4] Add import builtin
From: |
Matheus Afonso Martins Moreira |
Subject: |
Re: [PATCH 0/4] Add import builtin |
Date: |
Wed, 08 May 2024 00:53:45 +0000 |
> Surely these module managers do more than simply implement an
> alternate search path?
Yes. The core feature that they provide, namely module loading,
should be native to bash though. Users who need just that core
feature need not pull in an entire module manager just to get it.
So for those users the code reduction is quite significant.
> For the record I think it would be fine to introduce a new variable
> BASH_SOURCE_PATH that changes the behavior of "source" in non-POSIX
> mode. I don't think "source" requires a new option to use this.
That's true and I think it's also a reasonable way to solve the problem.
My original idea was to do exactly that. I changed course while developing
it because when I thought about it I concluded it had disadvantages.
The behavior of the source builtin already has several special cases.
https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html#index-_002e
Simply taking the variable into account would add to that complexity.
Adding the option to source though allows simple and unambiguous behavior.
I'm not at all opposed to the variable solution however.
I can implement it that way if it's deemed to be the preferred way.
> I didn't say or mean to imply that it was; I was just comparing it
> to another suggested feature about which I have a similar opinion.
> The presence or absence of patches has nothing to do with it. (By
> the by, at least two implementations of XDG startup files have been
> submitted in the past.)
I apologize if I've given offense. I think I got a bit defensive
after I read another email.
> And I appreciate the effort you've put in so far.
> Everyone has been seriously considering it.
Thanks.
Matheus
- Re: [PATCH 0/4] Add import builtin, (continued)
- Re: Re: Re: [PATCH 0/4] Add import builtin, Koichi Murase, 2024/05/08
- Re: Re: Re: Re: [PATCH 0/4] Add import builtin, Matheus Afonso Martins Moreira, 2024/05/08
- Re: [PATCH 0/4] Add import builtin, Chet Ramey, 2024/05/08
- Re: Re: [PATCH 0/4] Add import builtin, Matheus Afonso Martins Moreira, 2024/05/08
- Re: [PATCH 0/4] Add import builtin, Chet Ramey, 2024/05/07
- Re: [PATCH 0/4] Add import builtin, Chet Ramey, 2024/05/07
- Re: [PATCH 0/4] Add import builtin, Lawrence Velázquez, 2024/05/07
- Re: [PATCH 0/4] Add import builtin,
Matheus Afonso Martins Moreira <=
- Re: [PATCH 0/4] Add import builtin, Chet Ramey, 2024/05/08
- Re: Re: [PATCH 0/4] Add import builtin, Matheus Afonso Martins Moreira, 2024/05/08
- Re: Re: Re: Re: [PATCH 0/4] Add import builtin, Koichi Murase, 2024/05/06
- Re: Re: Re: [PATCH 0/4] Add import builtin, Martin D Kealey, 2024/05/07
- Re: Re: Re: [PATCH 0/4] Add import builtin, Koichi Murase, 2024/05/08
- Re: Re: Re: [PATCH 0/4] Add import builtin, Phi Debian, 2024/05/05
- Re: Re: [PATCH 0/4] Add import builtin, konsolebox, 2024/05/08
Re: [PATCH 0/4] Add import builtin, Chet Ramey, 2024/05/03
Re: [PATCH 0/4] Add import builtin, Robert Elz, 2024/05/03