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

Reply via email to