[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Special PATH variable for sourcing scripts?
From: |
Zachary Santer |
Subject: |
Re: Special PATH variable for sourcing scripts? |
Date: |
Sun, 21 Apr 2024 22:03:55 -0400 |
On Sun, Apr 21, 2024 at 7:13 PM Matheus Afonso Martins Moreira
<matheus@matheusmoreira.com> wrote:
>
> > This name would be misleading. Sourced scripts are not "libraries".
>
> Would it be OK to introduce the concept of libraries?
> Perhaps a new import mechanism could be created
> instead of reusing the scripting sourcing mechanism.
> Perhaps there is a better solution that I haven't thought of.
Instead of diving into the semantics of what counts as a "library,"
how about we just consider different variable names? BASH_SOURCE_PATH?
SOURCE_PATH?
Sourcing reusable code seems fine. How else would it work?
Re: Special PATH variable for sourcing scripts?, Chet Ramey, 2024/04/22
Re: Special PATH variable for sourcing scripts?, David Ongaro, 2024/04/29