[ python-Bugs-1724822 ] shlex.split problems on Windows
SourceForge.net
noreply at sourceforge.net
Thu May 24 15:09:11 CEST 2007
Bugs item #1724822, was opened at 2007-05-24 12:56
Message generated for change (Comment added) made by gbrandl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1724822&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.5
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Geoffrey Bache (gjb1002)
Assigned to: Nobody/Anonymous (nobody)
Summary: shlex.split problems on Windows
Initial Comment:
What is shlex.split supposed to do on Windows? It seems to be present but it can't handle basic Windows pathnames : shlex.split("C:\\directory\\file") returns C:directoryfile (whereas os.system happily accepts the same string).
Also, it runs in POSIX mode and there is no way to override it! Why isn't POSIX mode the default on POSIX systems and not on non-POSIX systems? Or for it to at least be possible to says shlex.split(s, posix=False)?
----------------------------------------------------------------------
>Comment By: Georg Brandl (gbrandl)
Date: 2007-05-24 13:09
Message:
Logged In: YES
user_id=849994
Originator: NO
The docs to shlex say: "The shlex class makes it easy to write lexical
analyzers for simple syntaxes resembling that of the Unix shell."
It is not meant to be a cross-platform shell quoting handler, but an
implementation of Unix shell behavior.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1724822&group_id=5470
More information about the Python-bugs-list
mailing list