Mercurial > repo
changeset 6716:e862c2b6c6db
<zgrep> ` echo \'if o.access(a, o.X_OK):print u.check_output([\'bash\',a]),;exit()\' >> bin/tomfoolery
author | HackBot |
---|---|
date | Wed, 10 Feb 2016 02:57:57 +0000 |
parents | 1e8f5e75e7b1 |
children | 62edae7d3380 |
files | bin/tomfoolery |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/tomfoolery Wed Feb 10 02:57:52 2016 +0000 +++ b/bin/tomfoolery Wed Feb 10 02:57:57 2016 +0000 @@ -5,3 +5,4 @@ if len(s.argv) != 2:print"I have nothing to say to you.";exit() a=s.argv[1];o.chdir(t) if not o.path.isfile(a):print u.check_output(["?",a]),;exit() +if o.access(a, o.X_OK):print u.check_output([bash,a]),;exit()