Closed stevapple closed 10 months ago
Thanks, @stevapple! Do you know if the Bash completion scripts that ArgumentParser
creates work on Windows?
@natecook1000 no, they would not. There is no completion support for cmd.
Since ArgumentParser's shell detection is only to support the completion script request, it doesn't sound like we need this change.
The conventional
SHELL
environment variable is set by OpenSSH server on Windows, but we need to normalize the path slightly differently. Some popular shell names on Windows arecmd
(Command Prompt),powershell
(Windows Powershell),pwsh
(Powershell Core) andbash
(Git Bash).Checklist