[issue36897] shlex doesn't differentiate escaped characters in output

2019-05-12 Thread Matthew Gamble
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&#

[issue36897] shlex doesn't differentiate escaped characters in output

2019-05-13 Thread Matthew Gamble
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)

[issue36897] shlex doesn't differentiate escaped characters in output

2019-05-13 Thread Matthew Gamble
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

[issue6818] remove/delete method for zipfile/tarfile objects

2015-04-09 Thread Matthew Gamble
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

[issue6818] remove/delete method for zipfile/tarfile objects

2015-04-09 Thread Matthew Gamble
Changes by Matthew Gamble : Added file: http://bugs.python.org/file38879/zip_hiddenfiles.zip ___ Python tracker <http://bugs.python.org/issue6818> ___ ___ Python-bug