[issue1521950] shlex.split() does not tokenize like the shell

Dan Christian report at bugs.python.org
Thu Feb 23 15:47:36 CET 2012


Dan Christian <robodan at users.sourceforge.net> added the comment:

I haven't been following this much.  Sorry.  My day job isn't in this area any more (and I'm stuck using 2.4 :-().

Looking at the docs, I notice the "old" is different from what it used to be.  Notably: 'e;' gets split into two tokens; and ">'abc';" gets split into 3.  I'm pretty sure that baseline code doesn't split those at all.  So there is a question of if "old" is fully backward compatible.

The "new" functionality looks great.  That's what I was looking for when I filed the bug.

Thank you!
-Dan

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1521950>
_______________________________________


More information about the Python-bugs-list mailing list