New submission from Matthew Gamble :
The output of the following invocations are exactly the same:
list(shlex.shlex('a ; b', posix=True, punctuation_chars=True))
list(shlex.shlex('a \; b', posix=True, punctuation_chars=True))
They both output the following:
['a
Matthew Gamble added the comment:
The point is that it's not possible to use the output of shlex.shlex to try to
match the behaviour of a POSIX-compliant shell by reliably splitting up a
user's input into multiple commands. In the first case I presented (no escape
character)
Matthew Gamble added the comment:
My apologies, I didn't realise you were talking about the invalid escape
sequence. Thanks for letting me know about the fact that it's deprecated, I'll
definitely be keeping that in mind going forward.
In a bash shell with the find command
Matthew Gamble added the comment:
Hi,
I've recently been working on a Python module for the Adobe universal container
format (UCF) which extends the zip specification - as part of this I wanted to
be able to remove and rename files in an archive.
I discovered this issue when writin
Changes by Matthew Gamble :
Added file: http://bugs.python.org/file38879/zip_hiddenfiles.zip
___
Python tracker
<http://bugs.python.org/issue6818>
___
___
Python-bug