|
| From: | Léa Gris |
| Subject: | Re: proposed BASH_SOURCE_PATH |
| Date: | Wed, 26 Jun 2024 15:46:47 +0200 |
| User-agent: | Mozilla Thunderbird |
Le 26/06/2024 à 14:17, Martin D Kealey écrivait :
Just to be clear, would this result in $0 and ${BASH_SOURCE[@]:(-1):1}
potentially yielding different values?
There is no reason it would alter the content of $0 which remains the name of the command involved.
The arguments vector with index 0 is a very different semantic than BASH_SOURCE. I don't even understand why BASH_SOURCE would point to anything other than the source path or the real source path if some option tells it to resolve real paths.
-- Léa Gris
| [Prev in Thread] | Current Thread | [Next in Thread] |