[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proposed BASH_SOURCE_PATH
From: |
alex xmb sw ratchev |
Subject: |
Re: proposed BASH_SOURCE_PATH |
Date: |
Sun, 7 Jul 2024 21:23:15 +0200 |
On Sun, Jul 7, 2024, 21:03 Chet Ramey <chet.ramey@case.edu> wrote:
> On 7/3/24 5:32 PM, alex xmb sw ratchev wrote:
> > is this all about adding full path ? to sourcr / . ?
> > for this may add one varname , like BASH_SOURCE_FULL
> >
> > it seems to me , using BASH_SOURCE , if it doesnt start with / , prefix
> > $PWD , .. else its already
>
> The objection is that people don't want to have to do that -- what if you
> change directories after a relative path is added to BASH_SOURCE[n]?
>
hi ..
i dont get the BASH_SOURCE[n] one
the point of prefix $PWD/ infront of relative paths is a static part of
fitting into the first lines of the script , assigning vars
.. if u cd first then want the old relative path .. no go .. it must be
done at early codes
one argument is , preserving one to one strings as user passes including
relative paths like spawn script name
.. while also the need for absolute path is not less inportant
i see another var added . BASH_SOURCE_ABSOLUTE , or _REAL , or so , which
bash will fill the path
.. a question is still what to do with symlinks , maybe additional code is
needed
thanks .. greets ..
--
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
>
>
- Re: proposed BASH_SOURCE_PATH, Chet Ramey, 2024/07/01
- Re: proposed BASH_SOURCE_PATH, konsolebox, 2024/07/03
- Re: proposed BASH_SOURCE_PATH, Chet Ramey, 2024/07/03
- Re: proposed BASH_SOURCE_PATH, konsolebox, 2024/07/03
- Re: proposed BASH_SOURCE_PATH, alex xmb sw ratchev, 2024/07/03
- Re: proposed BASH_SOURCE_PATH, Chet Ramey, 2024/07/07
- Re: proposed BASH_SOURCE_PATH,
alex xmb sw ratchev <=
- Re: proposed BASH_SOURCE_PATH, Greg Wooledge, 2024/07/07
- Re: proposed BASH_SOURCE_PATH, Chet Ramey, 2024/07/10
- Re: proposed BASH_SOURCE_PATH, konsolebox, 2024/07/11
- Re: proposed BASH_SOURCE_PATH, Chet Ramey, 2024/07/18
- Re: proposed BASH_SOURCE_PATH, konsolebox, 2024/07/18
- Re: proposed BASH_SOURCE_PATH, Chet Ramey, 2024/07/25
- Re: proposed BASH_SOURCE_PATH, alex xmb sw ratchev, 2024/07/29
- Re: proposed BASH_SOURCE_PATH, Martin D Kealey, 2024/07/07
- Re: proposed BASH_SOURCE_PATH, Oğuz, 2024/07/08
- Re: proposed BASH_SOURCE_PATH, Martin D Kealey, 2024/07/08