[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 11:52:34 -0500 |
On Tue, Feb 20, 2024 at 11:17 AM Chet Ramey <chet.ramey@case.edu> wrote:
>
> BASH_SOURCE and BASH_LINENO are part of the debugger support, and exist so
> the debugger can create a function call stack.
>
> I've definitely used them to create my own call stack. I've seen
${BASH_SOURCE[0]} given as preferable to ${0} for figuring out where the
running script is, though I don't recall the details there.
> Since startup files are read before any commands, interactive or non-
> interactive, the name of any shell script isn't in BASH_SOURCE when reading
> the startup files.
>
> Fine.
- 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 <=
- 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, 2024/02/20
Re: Bash 5.1: Make shell_script_filename available to startup files, Grisha Levit, 2024/02/16