Skip to content

Add symlink resolution for executable discovery#18

Merged
zph merged 1 commit intomainfrom
zh-symlink-issue
Feb 26, 2026
Merged

Add symlink resolution for executable discovery#18
zph merged 1 commit intomainfrom
zh-symlink-issue

Conversation

@zph
Copy link
Owner

@zph zph commented Feb 26, 2026

filepath.Walk does not follow symlinks, so symlinked scripts were
invisible to help listings, exec, and tab completion. Extract
collectExecutables from the help command and resolve symlinks via
os.Stat before checking executable bits. Broken symlinks are
silently skipped.

Also adds self-documenting help target to Makefile.

EARS: SYMLINK-001 through SYMLINK-006

filepath.Walk does not follow symlinks, so symlinked scripts were
invisible to help listings, exec, and tab completion. Extract
collectExecutables from the help command and resolve symlinks via
os.Stat before checking executable bits. Broken symlinks are
silently skipped.

Also adds self-documenting help target to Makefile.

EARS: SYMLINK-001 through SYMLINK-006
@zph
Copy link
Owner Author

zph commented Feb 26, 2026

Closes #17

@zph zph merged commit 541d7c1 into main Feb 26, 2026
1 check passed
@zph zph deleted the zh-symlink-issue branch February 26, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant