[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/issu

[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', '=',