[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash 5.1: Make shell_script_filename available to startup files
From: |
Zachary Santer |
Subject: |
Re: Bash 5.1: Make shell_script_filename available to startup files |
Date: |
Tue, 20 Feb 2024 15:10:26 -0500 |
On Tue, Feb 20, 2024 at 2:38 PM alex xmb sw ratchev <fxmbsw7@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.
- Re: Bash 5.1: Make shell_script_filename available to startup files, Marc Aurèle La France, 2024/02/16
- Re: Bash 5.1: Make shell_script_filename available to startup files, Zachary Santer, 2024/02/16
- Re: Bash 5.1: Make shell_script_filename available to startup files, Marc Aurèle La France, 2024/02/16
- Re: Bash 5.1: Make shell_script_filename available to startup files, Zachary Santer, 2024/02/17
- Re: Bash 5.1: Make shell_script_filename available to startup files, Marc Aurèle La France, 2024/02/17
- Re: Bash 5.1: Make shell_script_filename available to startup files, Zachary Santer, 2024/02/17
- Re: Bash 5.1: Make shell_script_filename available to startup files, Marc Aurèle La France, 2024/02/17
- Re: Bash 5.1: Make shell_script_filename available to startup files, Chet Ramey, 2024/02/20
- Re: Bash 5.1: Make shell_script_filename available to startup files, Zachary Santer, 2024/02/20
- Re: Bash 5.1: Make shell_script_filename available to startup files, alex xmb sw ratchev, 2024/02/20
- Re: Bash 5.1: Make shell_script_filename available to startup files,
Zachary Santer <=
Re: Bash 5.1: Make shell_script_filename available to startup files, Grisha Levit, 2024/02/16