bug-bash
[Top][All Lists]
Advanced

[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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]