# HG changeset patch # User HackBot # Date 1455074150 0 # Node ID 8cc7755c656a756cd8f91ed5a383f350ccb8291e # Parent c2f9ba5cfacf1bb1eb848180a65199401492fa47 ` echo \'if [ -z "$1" ];then echo "Wadda ya want?";exit;fi;a="tmflry/$1";if [ -x "$a" ];then bash "$a";exit;fi;if [ -e "$a" ];then cat "$a";exit;fi;? "$1"\' > bin/tomfoolery diff -r c2f9ba5cfacf -r 8cc7755c656a bin/tomfoolery --- a/bin/tomfoolery Wed Feb 10 03:12:50 2016 +0000 +++ b/bin/tomfoolery Wed Feb 10 03:15:50 2016 +0000 @@ -1,10 +1,1 @@ -#!/usr/bin/env python -import os as o,sys as s,subprocess as u -t="tmflry" -if not o.path.isdir(t):print"Somebody should take a peek inside me.";exit() -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() -with open(a,"r")as f:print f.read(), -a="tmflry/$1";if [[ -x "$a" ]];then bash "$a";exit;fi;if [[ -e "$a" ]];then cat "$a";exit;fi;? "$1" +if [ -z "$1" ];then echo "Wadda ya want?";exit;fi;a="tmflry/$1";if [ -x "$a" ];then bash "$a";exit;fi;if [ -e "$a" ];then cat "$a";exit;fi;? "$1"