Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
throwaway2037
3y ago
0 comments
Share
Thank you to share. Can you provide an example where "$0" != "$BASH_SOURCE"?
Also, did you mean to write...?
$(dirname "$BASH_SOURCE")"
0 comments
default
newest
oldest
lockedinspace
3y ago
Please read:
https://mywiki.wooledge.org/BashFAQ/028
this will explain why it's not recommended to use $0
j
/
k
navigate · click thread line to collapse