[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: |
Sat, 17 Feb 2024 07:14:07 -0500 |
On Fri, Feb 16, 2024 at 9:45 PM Marc Aurèle La France <tsi@tuyoix.net>
wrote:
> On Fri, 2024-Feb-16, Zachary Santer wrote:
>
> > And you're sure ${BASH_SOURCE[0]} wasn't what you wanted all along?
>
> Yes, but that doesn't matter now.
>
At the bottom of my .bashrc file:
printf '%s\n' "Hello, this script is ${BASH_SOURCE[0]}"
I start a new terminal and get:
Hello, this script is /home/zsant/.bashrc
How is this not what you wanted?
- 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 <=
- 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, 2024/02/20
Re: Bash 5.1: Make shell_script_filename available to startup files, Grisha Levit, 2024/02/16