# HG changeset patch # User HackBot # Date 1455073354 0 # Node ID ae749f377daf6dd54118ceb39f8077576f297541 # Parent 70f05e136a1f51d50617c173eafd52055fcddcc8 ` echo \'if o.access(a, o.X_OK):print u.check_output(["bash",a]),;exit()\' >> bin/tomfoolery diff -r 70f05e136a1f -r ae749f377daf bin/tomfoolery --- a/bin/tomfoolery Wed Feb 10 03:02:28 2016 +0000 +++ b/bin/tomfoolery Wed Feb 10 03:02:34 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):o.chdir("..");print u.check_output(["?",a]),;exit() +if o.access(a, o.X_OK):print u.check_output(["bash",a]),;exit()