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 12:27:27 -0400
User-agent: Mozilla Thunderbird

On 6/26/24 7:18 PM, Martin D Kealey wrote:

But unfortunately in this case, BASH_ARGC[0] is 1 rather than 0,, and the filename provided to "source" (now ${BASH_SOURCE[0]}) is prepended to BASH_ARGV.

Because that's the state of this call frame, and that's what the bash
debugger -- why these variables exist -- needs.

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