Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shell detection #6230

Merged
merged 3 commits into from
Sep 13, 2024
Merged

Fix shell detection #6230

merged 3 commits into from
Sep 13, 2024

Conversation

oz123
Copy link
Contributor

@oz123 oz123 commented Sep 1, 2024

I introduced a silly bug - with some major consequeces - in #6215.

First, I forgot to include brackets in endswith. Second, I added a "/" as if the command should be /bin/bash or /usr/bin/bash, which in Windows will be '/'. This is actually not needed and detecting the shell based on the last word (the command) without the path, should be fine on all OSs.

@oz123 oz123 requested a review from matteius September 1, 2024 20:19
@oz123 oz123 mentioned this pull request Sep 1, 2024
pipenv/shells.py Outdated Show resolved Hide resolved
@oz123 oz123 force-pushed the fix-shell-detection branch from b4de965 to 6b4b8f3 Compare September 13, 2024 19:40
@oz123 oz123 requested a review from matteius September 13, 2024 19:41
@matteius matteius merged commit d30e24c into main Sep 13, 2024
19 checks passed
@matteius matteius deleted the fix-shell-detection branch September 13, 2024 20:30
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.

2 participants