STINNER Victor added the comment: 2016-05-22 11:18 GMT+02:00 Eryk Sun <rep...@bugs.python.org>: > subprocess could use "/u /c" instead of "/c". This would only affect the > output of internal shell commands such as "dir" and "set".
Oh, I didn't know the interesting "cmd /u" command. It looks like a short and working fix for the "set" issue. As a side project, we can also evaluate using "cmd /u" by default when shell=True is used with subprocess on Windows. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27048> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com