On 5/2/24 6:22 PM, Matheus Afonso Martins Moreira wrote:
This patch set introduces a new "import" builtin which behaves just like the source builtin but only looks up executables in the BASH_IMPORT_PATH variable.
How is this any different than PATH=$BASH_IMPORT_PATH:$PATH source or PATH=$BASH_IMPORT_PATH source You could force the latter if you are sure that the sourced files will not attempt to run external commands. You could even make this an alias if you want. I'd hesitate to make it a function, unless you're sure that no file you source uses `declare' to create variables, since those will be local to the function by default. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature