bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New instances of Bash should ignore and reset BASH_ARGV0


From: Chet Ramey
Subject: Re: New instances of Bash should ignore and reset BASH_ARGV0
Date: Mon, 10 Oct 2022 11:45:46 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.1

On 10/10/22 2:38 AM, konsolebox wrote:
This doesn't look right to me:

# export BASH_ARGV0=fdsafasfas
# bash
# echo "$BASH_ARGV0|$0"
fdsafasfas|fdsafasfas

It's fine. If someone wants to set $0 when the shell starts, this is a way
to do it.

I added this back in 2019 as the result of a user request (which I can't
find right now, naturally).

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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