Skip to content

fix: use basename for shell detection to support non-standard paths - #5205

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
ayatofrench:push-sssrqnnvopwo
Dec 7, 2025
Merged

rekram1-node merged 1 commit into
anomalyco:devfrom
ayatofrench:push-sssrqnnvopwo

Conversation

@ayatofrench

Copy link
Copy Markdown
Contributor

The shell exclusion check for fish and nu was hardcoded to specific paths (/bin/fish, /usr/bin/fish, etc.), which failed for users with shells installed in non-standard locations (e.g., /opt/homebrew/bin/fish, ~/.nix-profile/bin/nu).

Now uses path.basename() to check just the shell name regardless of install path.

Resolves: #5190

The shell exclusion check for fish and nu was hardcoded to specific paths
(/bin/fish, /usr/bin/fish, etc.), which failed for users with shells installed
in non-standard locations (e.g., /opt/homebrew/bin/fish, ~/.nix-profile/bin/nu).

Now uses path.basename() to check just the shell name regardless of install path.
@rekram1-node

Copy link
Copy Markdown
Collaborator

/review

@github-actions

github-actions Bot commented Dec 7, 2025

Copy link
Copy Markdown
Contributor

lgtm

@rekram1-node
rekram1-node merged commit 238b907 into anomalyco:dev Dec 7, 2025
3 of 4 checks passed
@ayatofrench

Copy link
Copy Markdown
Contributor Author

Thanks for the review!

Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
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.

Tighten shell validation in bash.ts to handle shells installed in non-standard paths

2 participants