pypa / pipenv

Python Development Workflow for Humans.
https://pipenv.pypa.io
MIT License
24.9k stars 1.87k forks source link

Fix shell detection #6230

Closed oz123 closed 2 months ago

oz123 commented 2 months ago

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.