view bin/tomfoolery @ 12436:a626721f5556 draft

<b_jonas> python3 -cn="/hackenv/bin/("; s=open(n).read(); s=s.replace(\' canary\',\' -- "$HACKENV/canary"\'); open(n,"w").write(s); print(s);
author HackEso <hackeso@esolangs.org>
date Sat, 11 Dec 2021 21:49:11 +0000
parents 77998d6dfbd4
children
line wrap: on
line source

if [ -z "$1" ];then exec echo "I have nothing to tell you.";fi;t="$HACKENV/tmflry";f="$t/$(echo "$1" | lowercase)";if [ -h "$f" ];then exec tomfoolery `readlink "$f" | sed 's/^'"$t"'\///'`;fi;if [ -x "$f" ];then exec bash "$f";fi;if [ -r "$f" ];then exec cat "$f";fi;echo "I must confess, I know not of what you are speaking."