[issue1724822] provide a shlex.split alternative for Windows shell syntax
Éric Araujo
report at bugs.python.org
Wed Jul 27 18:03:14 CEST 2011
Éric Araujo <merwok at 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 <report at bugs.python.org>
<http://bugs.python.org/issue1724822>
_______________________________________
More information about the Python-bugs-list
mailing list