News for hackers. Stuff that matters.
Re:Shell Script Best Practices, from a decade of scripting t... by throwaway2037 on Thursday October 27, 2022 @09:07AM (#33356908)
Thank you to share. Can you provide an example where "$0" != "$BASH_SOURCE"?

Also, did you mean to write...?

    $(dirname "$BASH_SOURCE")"
Re:Shell Script Best Practices, from a decade of scripting t... by lockedinspace on Thursday October 27, 2022 @09:33AM (#33357229)
Please read: https://mywiki.wooledge.org/BashFAQ/028 this will explain why it's not recommended to use $0