bug-bash
[Top][All Lists]
Advanced

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

Re: proposed BASH_SOURCE_PATH


From: Chet Ramey
Subject: Re: proposed BASH_SOURCE_PATH
Date: Wed, 3 Jul 2024 10:49:36 -0400
User-agent: Mozilla Thunderbird

On 6/26/24 8:17 AM, Martin D Kealey wrote:


On Wed, 26 Jun 2024, 03:14 Chet Ramey, <chet.ramey@case.edu <mailto:chet.ramey@case.edu>> wrote:

    On 6/19/24 6:12 PM, konsolebox wrote:

     > Alternatively, have BASH_SOURCE always produce real physical paths
     > either by default or through a shopt.

    This is the best option. I don't think changing bash to do this by
    default would have negative side-effects.


Just to be clear, would this result in $0 and ${BASH_SOURCE[@]:(-1):1} potentially yielding different values?

Yes.

--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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