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: the script-dir idiom with a literal suffix (X="$(cd "$(dirname "$0")/.." && pwd)/lib/x") loses the suffix, so . "$X/f.sh" gets no edge #5560
Graphify drops the /lib/x after pwd), so $LIB resolves to the repo's root and . "$LIB/greet.sh" finds no file.
The script gets no imports_from edge to lib/x/greet.sh, and no calls edge to greet.
Reproduced on graphifyy 0.9.122 (newest on PyPI), installed with pip, nothing patched, Python 3.12, Ubuntu.
imports_from bin/tool -> lib/x/greet.sh
calls bin/tool main -> lib/x/greet.sh greet
Got
calls bin/tool (script) -> bin/tool main
Cause and fix
When a variable is set to the idiom, the part after pwd) is not kept as a suffix of the folder.
Keeping the literal suffix (and resolving a .. in it) when the idiom ends before the closing quote fixes it.
Related, not duplicates: #2596 (paths from $(dirname "$VAR")) and #3416 (exec-position paths from a variable).
We carry this fix as a local patch and can 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): keep the literal suffix after the script-dir idiom's pwd) (#…