On Thu, Jul 4, 2024 at 2:54 AM Chet Ramey <chet.ra...@case.edu> wrote:
> So your answer is "yes." Is there anything to be gained by leaving the
> pathname to source/. unchanged and just storing the full pathname of the
> script file argument?
>
> I'm looking for input from people who write shell frameworks here. The ones
> who were vocal about BASH_SOURCE_PATH, since these concepts seem related.

Perhaps vanilla scripts, libraries and frameworks can survive with
just the main file resolving to the real path.  The coder just has to
make sure all paths specified to '.' or source are full paths.  But I
think it's better to be consistent.  It comes with fewer surprises and
usage rules.


-- 
konsolebox

Reply via email to