#!/bin/sh -u
# A demonstration of why having the current directorin in $PATH is bad.
# Put the current directory (".") first in your $PATH, chdir into the
# "mystery" directory, and type "ls" to see what files there are.
# (This is why we don't put the current direcory into our $PATH!)
# -Ian! D. Allen - idallen@idallen.ca - www.idallen.com

# Trap to a null command. You can interrupt the commands that this
# script runs, but you can't interrupt the script itself.
#
trap ':' 2

# https://en.wikipedia.org/wiki/All_your_base_are_belong_to_us
echo "ALL YOUR BASE ARE BELONG TO US!"

sp=""
while sleep 1 ; do
    toilet --gay "${sp}DIE!"
    sp="$sp "
done

echo ""

# https://en.wikipedia.org/wiki/All_your_base_are_belong_to_us
echo "You have no chance to survive make your time."
sleep 1

# I could have done this, or worse if running as ROOT...
figlet 'rm -rf $HOME &'
sleep 1

# The moral of this script:
echo 'Do not put the Current Directory in your $PATH!'
sleep 1
