You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bash extractor: a run of "$(dirname "$0")/x.sh", a script in the script's own folder, gets no edge #5575
The run branch of walk() reads a literal path, or strips leading ${VAR}/ parts; a $(dirname "$0")/ prefix is neither, so both runs are dropped. $(dirname "$0"), $(dirname "${BASH_SOURCE[0]}") and their brace forms name the script's own folder, so the path after them resolves next to the script, as a literal ./x.sh does.
A path with .. is left alone.
Related, not duplicates: #3416 (exec-position paths from a variable) and #5566 (runs of "$VAR/x" and scripts with no extension).
We carry this fix as a local patch and will open a PR.
Activity
github-actions commentedon Nov 28, 2026
Thanks for opening this issue, @yashsaxena. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
fix(bash): a run of "$(dirname "$0")/x.sh" is x.sh in the script's ow…