Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

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

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Apr 21, 2012, 4:04 PM

Post #1 of 7 (54 views)
Permalink
[issue1521950] shlex.split() does not tokenize like the shell

Vinay Sajip <vinay_sajip [at] yahoo> added the comment:

I've received no comments on the latest revision of my patch (incorporating comments on the previous version); is it OK to commit this?

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1521950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 21, 2012, 4:15 PM

Post #2 of 7 (55 views)
Permalink
[issue1521950] shlex.split() does not tokenize like the shell [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

I'd like to take a look at this (I wasn't aware of it before). I'll try to do that some time in the next 24 hours, and if I don't you shouldn't wait for me :)

Did you address Dan's concern about 'old' possibly not matching the old behavior completely?

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1521950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 22, 2012, 4:50 AM

Post #3 of 7 (50 views)
Permalink
[issue1521950] shlex.split() does not tokenize like the shell [In reply to]

Vinay Sajip <vinay_sajip [at] yahoo> added the comment:

I believe Dan meant that the behaviour of shlex.split() now is different from what it was when he first raised the issue (in July 2006). Looking at the default branch of CPython, this is what I see:

Python 3.3.0a2+ (default:ff6593aa8376, Apr 22 2012, 12:39:08)
[GCC 4.3.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import shlex
>>> list(shlex.shlex('e;'))
['e', ';']
>>> list(shlex.shlex(">'abc';"))
['>', "'abc'", ';']

Likewise, on the 2.6 branch:

Python 2.6.8+ (unknown, Apr 22 2012, 12:44:43)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import shlex
>>> list(shlex.shlex('e;'))
['e', ';']
>>> list(shlex.shlex(">'abc';"))
['>', "'abc'", ';']

So from what Dan is saying, it would seem that he is saying that shlex behaviour (before my patch being applied) is different now to how he remembers it - not that the patch introduces any incompatibility.

Still, another set of eyeballs on the patch would be good.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1521950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 23, 2012, 6:48 AM

Post #4 of 7 (52 views)
Permalink
[issue1521950] shlex.split() does not tokenize like the shell [In reply to]

Éric Araujo <merwok [at] netwok> added the comment:

> I'd like to take a look at this (I wasn't aware of it before).
Are you interested in shlex in general or only this bug? If the former, then I’ll try to remember to make you nosy on future issues.

BTW, what is the shlex unicode bug you mentioned a few times on Rietveld? The one I know is fixed now.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1521950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 23, 2012, 7:04 AM

Post #5 of 7 (48 views)
Permalink
[issue1521950] shlex.split() does not tokenize like the shell [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

I am interested in shell stuff in general.

The unicode bug is issue 1170.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1521950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 25, 2012, 8:53 AM

Post #6 of 7 (46 views)
Permalink
[issue1521950] shlex.split() does not tokenize like the shell [In reply to]

Changes by Vinay Sajip <vinay_sajip [at] yahoo>:


Added file: http://bugs.python.org/file25365/9252961a03e7.diff

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1521950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 27, 2012, 12:03 AM

Post #7 of 7 (48 views)
Permalink
[issue1521950] shlex.split() does not tokenize like the shell [In reply to]

Changes by Ezio Melotti <ezio.melotti [at] gmail>:


----------
nosy: +ezio.melotti

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1521950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.