help-bash
[Top][All Lists]
Advanced

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

Re: is there a difference between $BASH_SOURCE and $0 in portability ?


From: Lawrence Velázquez
Subject: Re: is there a difference between $BASH_SOURCE and $0 in portability ?
Date: Wed, 16 Feb 2022 17:52:48 -0500
User-agent: Cyrus-JMAP/3.5.0-alpha0-4776-gd3673c9443-fm-20220215.001-gd3673c94

On Wed, Feb 16, 2022, at 5:37 PM, Alex fxmbsw7 Ratchev wrote:
> i ask cause BASH_ isnt maybe availabe, so i must use $0 to exec with new
> bash again ( os x ) .. whats the difference .. ( of $0 vs BASH_SOURCE ) ?

https://mywiki.wooledge.org/BashFAQ/028#arg0

(I fully expect you to object that this is "invalid", but whatever.)

-- 
vq



reply via email to

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