On Tue, Feb 20, 2024 at 2:38 PM alex xmb sw ratchev <fxmb...@gmail.com>
wrote:

> check if $BASH_SOURCE begins with a / , else prepend $PWD to it
> to path of file
>

source "$( dirname -- "$( realpath --canonicalize-existing --
"${BASH_SOURCE[0]}" )" )\
/common/sourced-file.bash"

What I do, anyway. Won't let symlinks cause issues.

Reply via email to