◐ Shell
clean mode source ↗

Message 174093 - Python tracker

This issue is to add a function to the os module for getting the path to the default shell (e.g. os.getdefaultshell()).

In issue 16255, it was reported that on Android, the path to the default shell is "/system/bin/sh" rather than "/bin/sh" which it is on other Unix systems.

Such a function in the os module would implement the necessary detection logic which could then be used, for example, by the subprocess module when invoking Popen() with shell=True (e.g. for issue 16255).