# HG changeset patch # User HackBot # Date 1455073178 0 # Node ID e2834d707156ede028307c2efea47390f416d713 # Parent ea142bdf6809d1e480d8bf4ba5ec4735055901da ` echo \'if o.access(a, o.X_OK):print u.check_output(["bash",a]),;exit()\' >> bin/tomfoolery diff -r ea142bdf6809 -r e2834d707156 bin/tomfoolery --- a/bin/tomfoolery Wed Feb 10 02:59:34 2016 +0000 +++ b/bin/tomfoolery Wed Feb 10 02:59:38 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()