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
Tighten shell validation in bash.ts to handle shells installed in non-standard paths #5190
The current shell detection logic in bash.ts contains a guard that returns the SHELL environment variable if it doesn't match a specific set of paths. When running in a Nix environment (or other shells installed by nix), the dynamically generated paths do not match the Set and are returned as valid.
Technical Detail
The check currently relies on an exact string match:
I recommend refactoring this guard to detect shells installed in non-standard paths (such as checking the base name of the path).
I’ve noticed other open PRs that add broader shell support, but I wanted to open this PR just in case such support might take some more time. I am happy to submit a PR with a fix.
changed the title [-]Tighten Shell Validation in bash.ts to Handle Nix-managed Environments[/-][+]Tighten Shell Validation in bash.ts to Handle shells installed in non-standard paths[/+]on Dec 7, 2025
changed the title [-]Tighten Shell Validation in bash.ts to Handle shells installed in non-standard paths[/-][+]Tighten shell validation in bash.ts to handle shells installed in non-standard paths[/+]on Dec 7, 2025
Activity
[-]Tighten Shell Validation in bash.ts to Handle Nix-managed Environments[/-][+]Tighten Shell Validation in bash.ts to Handle shells installed in non-standard paths[/+][-]Tighten Shell Validation in bash.ts to Handle shells installed in non-standard paths[/-][+]Tighten shell validation in bash.ts to handle shells installed in non-standard paths[/+]github-actions commentedon Dec 7, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
hsachdeva9 commentedon Dec 7, 2025
hey @ayatofrench, I would like to work on this issue, Could you please assign it to me?
rekram1-node commentedon Dec 7, 2025
@ayatofrench sure thing!
rekram1-node commentedon Dec 7, 2025
@hsachdeva9 ayato already volunteered