[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 
<http://bugs.python.org/issue29163>
___
___
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 
<http://bugs.python.org/issue29163>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com