Author Charles Daffern
Recipients Charles Daffern, eric.araujo, serhiy.storchaka
Date 2016-01-15.15:37:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452872247.53.0.754301676504.issue26124@psf.upfronthosting.co.za>
In-reply-to
Content
It's definitely a corner case (in argv[0] position + is keyword), but here's an example:

>>> import subprocess
>>> import shlex
>>> subprocess.call(shlex.quote("done"), shell=True)
/bin/sh: 1: Syntax error: "done" unexpected
2

The expected output of this would be:

/bin/sh: 1: done: not found
127

This would be the output if shlex.quote("done") returned "'done'" or r'\done' or any other combination of escaped/quoted characters where the keyword would otherwise be.
History
Date User Action Args
2016-01-15 15:37:27Charles Daffernsetrecipients: + Charles Daffern, eric.araujo, serhiy.storchaka
2016-01-15 15:37:27Charles Daffernsetmessageid: <1452872247.53.0.754301676504.issue26124@psf.upfronthosting.co.za>
2016-01-15 15:37:27Charles Daffernlinkissue26124 messages
2016-01-15 15:37:27Charles Dafferncreate