Mercurial > repo
changeset 6709:368451421035
<zgrep> ` echo \'#!/usr/bin/env python\' > bin/tomfoolery
author | HackBot |
---|---|
date | Wed, 10 Feb 2016 02:57:24 +0000 |
parents | b8adb88a0f8e |
children | 6f8e3490c824 |
files | bin/tomfoolery |
diffstat | 1 files changed, 0 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/tomfoolery Wed Feb 10 02:56:51 2016 +0000 +++ b/bin/tomfoolery Wed Feb 10 02:57:24 2016 +0000 @@ -1,9 +1,1 @@ #!/usr/bin/env python -import os as o,sys as s,subprocess as u -if len(s.argv) != 2:print"I have nothing to say to you.";exit() -if not o.path.isdir(t):print"Somebody should take a peek inside me.";exit() -if o.access(a, o.X_OK):print u.check_output([bash,a]),;exit() -a=s.argv[1];o.chdir(t) -with open(a,r)as f:print f.read(), -if not o.path.isfile(a):print u.check_output(["?",a]),;exit() -t="tmflry"