Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
throwaway2037
3y ago
0 comments
Save
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
1 comments · 1 top-level
top
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