[issue1724822] provide a shlex.split alternative for Windows shell syntax

2019-10-08 Thread Eli Schwartz


Change by Eli Schwartz :


--
nosy: +eschwartz

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2014-02-03 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy:  -BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1724822
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2011-07-27 Thread Éric Araujo

É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



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2011-03-05 Thread Philip Jenvey

Philip Jenvey pjen...@underboss.org added the comment:

The code I linked to above implements those semantics in pure Python. It 
follows Microsoft's Parsing C Command-Line Arguments rules like 
CommandLineToArgvW does

Here's updated links, the older links seemed to have broken:

https://fisheye3.atlassian.com/browse/jython/trunk/jython/Lib/subprocess.py?r=6636#to566

tests: 
https://fisheye3.atlassian.com/browse/jython/trunk/jython/Lib/test/test_subprocess_jy.py?r=6464#to41

This code is basically the inverse of subprocess's list2cmdline

I don't mind incorporating this code into the stdlib, but we need to figure out 
where it would go. There was a discussion on stdlib-sig last year related to 
this topic, about the need for quoting and unquoting command lines.

We have some of this functionality for posix systems scattered throughout shlex 
and the pipes module, and then there's subprocess.list2cmdline. I think we 
could use a new module with all this functionality in one place.

--

___
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



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2010-09-17 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Already fixed by r55549 and r0.

--
nosy: +BreamoreBoy
resolution:  - fixed
status: open - closed

___
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



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2010-09-17 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

No, this feature request has not been satisfied.  Georg fixed some subsidiary 
issues, but they did not in fact address the feature request for an shlex.split 
equivalent for Windows.

Since no one has expressed interest in working on this, even though model code 
has been offered, I'm changing the resolution to languishing rather than 
reopening it.  Perhaps someone with an itch to scratch will decide to pick it 
up eventually.

--
assignee: georg.brandl - 
nosy: +r.david.murray
resolution: fixed - 
status: closed - languishing

___
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



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2010-09-17 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

Raymond Chen's blog today discusses CommandLineToArgvW, which is apparently an 
API that can parse command lines. It's not clear to me if this is actually 
called by the MSFT CRT:
http://blogs.msdn.com/b/oldnewthing/archive/2010/09/17/10063629.aspx

Here's the documentation for it:
http://msdn.microsoft.com/en-us/library/bb776391%28VS.85%29.aspx

I don't know if we could call this directly (or via ctypes), or if we could 
emulate it based on the documentation, which doesn't seem very complete.

--

___
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



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2010-09-17 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

Now that I think about this some more, we wouldn't want to call this API. I'd 
rather this hypothetical function be available on non-Windows platforms, so 
we'd have to implement the semantics of CommandLineToArgvW or whichever CRT we 
decide to match.

--

___
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



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2010-05-28 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


--
nosy: +eric.smith

___
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



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2009-10-10 Thread Philip Jenvey

Philip Jenvey pjen...@underboss.org added the comment:

FYI I've implemented a Windows command line parser for use by subprocess 
on Jython, it's available here:

http://fisheye3.atlassian.com/browse/jython/trunk/jython/Lib/subprocess.
py?r=6636#l554

tests:

http://fisheye3.atlassian.com/browse/jython/trunk/jython/Lib/test/test_s
ubprocess_jy.py?r=6464#l41

like shlex, it wasn't built to handle ;  || to join multiple commands 
as #1521950 requests. But other than that it's complete

--
nosy: +pjenvey

___
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



[issue1724822] provide a shlex.split alternative for Windows shell syntax

2009-03-30 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
assignee:  - georg.brandl
components: +Documentation
stage:  - test needed
versions: +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