help-bash
[Top][All Lists]
Advanced

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

Thanks for the feedback


From: Matheus Afonso Martins Moreira
Subject: Thanks for the feedback
Date: Thu, 02 May 2024 19:59:41 -0300

I agree with you: adding to the complexity of source is not a good idea.

Bash is powerful enough to do it with a function, no doubt about it.
The thing is that approach begs the question of how to source that
function which is also a reusable library function. This chicken and
egg problem is why I believe a library facility is something that's
better off as a native feature of the language.

I just sent to the bug-bash mailing list a patch set that implements
this feature by adding a new builtin named import which behaves almost
exactly like source except for the fact it searches the paths in
BASH_IMPORT_PATH and returns executable files only.
I believe that addresses the concerns over the overloading of source.

Please let me know what you think.

  Matheus



reply via email to

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