Éric Araujo <mer...@netwok.org> added the comment: > But surely it's not named "POSIX mode" for no reason. It's because > those rules resemble those of the UNIX shell. While "non-POSIX mode" > resemble those of non-POSIX shells, such as DOS.
Not exactly: when it comes to parsing, shells on POSIX systems don’t always follow the POSIX rules. The non-POSIX/POSIX modes in shlex mimic that. In #9723, it was agreed to move the undocumented pipes.quote function into the shlex module. I think we could move list2commandline from subprocess into shlex too (that’s probably another report, but I’m saying it here because Philip mentioned it), and also provide a Windows-compliant split function in shlex. ---------- nosy: +eric.araujo, ianbicking, janssen, pmoore, titus versions: +Python 3.3 -Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1724822> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com