Gregory P. Smith added the comment: > That is, shouldn't we look up `pwd.getpwuid(os.getuid()).pw_shell` ? > (but only when os.getuid() == os.geteuid()?)
No, you can't use the users shell from the pwd module. That can be any crazy program. Not a functional /bin/sh for use in making commands when shell=True in subprocess which is where this feature request came from. *system* default, not the user's. subprocess MUST use /bin/sh or equivalent, ignoring any per-user setting. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16353> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com