2 ms·
Thank you to share. Can you provide an example where "$0" != "$BASH_SOURCE"? Also, did you mean to write...? $(dirname "$BASH_SOURCE")"
by throwaway2037 4y ago
Thank you to share. Can you provide an example where "$0" != "$BASH_SOURCE"?
Also, did you mean to write...?
$(dirname "$BASH_SOURCE")"
- lockedinspace 4y agoPlease read: https://mywiki.wooledge.org/BashFAQ/028 https://mywiki.wooledge.org/BashFAQ/028 this will explain why it's not recommended to use $0