[issue29163] shlex error in posix mode and empty quotes

2017-01-05 Thread Berker Peksag

Changes by Berker Peksag :


--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue29163] shlex error in posix mode and empty quotes

2017-01-05 Thread Evan

Evan added the comment:

My mistake, it was addressed directly in issue21999. This is already fixed in 
2.7.13 and will be fixed in 3.5.3.

--

___
Python tracker 

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



[issue29163] shlex error in posix mode and empty quotes

2017-01-05 Thread Evan

Evan added the comment:

This is also broken in 3.5.2, but not in 3.6.0:

>>> list(shlex.shlex('echo b="",echo bar', posix=True))
['echo', 'b', '=', '', ',', 'echo', 'bar']

I'm guessing it was fixed incidentally by the changes in issue1521950.

--
versions: +Python 3.5

___
Python tracker 

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



[issue29163] shlex error in posix mode and empty quotes

2017-01-05 Thread Evan

Changes by Evan :


--
nosy: +evan_

___
Python tracker 

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



[issue29163] shlex error in posix mode and empty quotes

2017-01-04 Thread Michal Ostrowski

Changes by Michal Ostrowski :


--
components: +Library (Lib)
type:  -> behavior
versions: +Python 2.7, Python 3.4

___
Python tracker 

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



[issue29163] shlex error in posix mode and empty quotes

2017-01-04 Thread Michal Ostrowski

New submission from Michal Ostrowski:

Three examples below.  I believe the second is wrong, because it reorders
the "echo" and "," tokens.

>>> list(shlex.shlex('echo b="a",echo bar', posix=True))
['echo', 'b', '=', 'a', ',', 'echo', 'bar']
>>> list(shlex.shlex('echo b="",echo bar', posix=True))
['echo', 'b', '=', 'echo', ',', 'bar']
>>> list(shlex.shlex('echo b="",echo bar'))
['echo', 'b', '=', '""', ',', 'echo', 'bar']

--
messages: 284685
nosy: Michal Ostrowski
priority: normal
severity: normal
status: open
title: shlex error in posix mode and empty quotes

___
Python tracker 

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