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.
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.