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: Fri, 16 Feb 2024 20:07:33 -0500

On Fri, Feb 16, 2024 at 4:17 PM Marc Aurèle La France <tsi@tuyoix.net>
wrote:

> On Mon, 2021-Feb-01, Marc Aurèle La France wrote:
>
> > Currently, only the script's arguments are passed as positional
> > parameters.  For compatibility reasons, $0 cannot be used to also pass
> the
> > script's filename, so I'm creating a new BASH_SCRIPT variable instead.
>

And you're sure ${BASH_SOURCE[0]} wasn't what you wanted all along?


reply via email to

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