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