bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH 0/9] Add library mode to source builtin


From: Lawrence Velázquez
Subject: Re: [PATCH 0/9] Add library mode to source builtin
Date: Sun, 05 May 2024 15:11:46 -0400
User-agent: Cyrus-JMAP/3.11.0-alpha0-417-gddc99d37d-fm-hotfix-20240424.001-g2c179674

On Sun, May 5, 2024, at 5:54 AM, Matheus Afonso Martins Moreira wrote:
> This patch set adds a special operating mode to the existing source
> builtin to make it behave in the desired way. When source is passed
> the options --library or -l, it will search for files in the
> directories given by the BASH_LIBRARIES_PATH environment variable,

I think every single use of the term "library" in this whole endeavor
is misleading and misguided.  It implies something unique about the
files being sourced, when in fact there is nothing special about
them at all -- they can still run arbitrary code, modify the global
namespace, etc. etc. etc. etc.

-- 
vq



reply via email to

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