Nick Coghlan <ncogh...@gmail.com> added the comment: Some examples:
>>> import shutil >>> shutil.shell_call("du -hs {}", "../py*") 594M ../py3k 579M ../py3k_pristine 480M ../python27 301M ../python31 382M ../python32 288K ../python_swallowed_whole 0 >>> shutil.shell_call("du -hs {!q}", "../py*") du: cannot access `../py*': No such file or directory 1 >>> shutil.shell_call("ls {}", "no file") ls: cannot access no file: No such file or directory 2 >>> shutil.shell_call("ls {!u}", "no file") ls: cannot access no: No such file or directory ls: cannot access file: No such file or directory 2 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13238> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com