Message258299
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. |
|
Date |
User |
Action |
Args |
2016-01-15 15:37:27 | Charles Daffern | set | recipients:
+ Charles Daffern, eric.araujo, serhiy.storchaka |
2016-01-15 15:37:27 | Charles Daffern | set | messageid: <1452872247.53.0.754301676504.issue26124@psf.upfronthosting.co.za> |
2016-01-15 15:37:27 | Charles Daffern | link | issue26124 messages |
2016-01-15 15:37:27 | Charles Daffern | create | |
|