
### MDSH ###

go() {
    if [ -d $1 -o $1 = north -o $1 = n ]; then
	if [ $1 = north -o $1 = n ]; then
	    cd ..;
	    $HOME/mdsh/mdsh.pl go;
	elif [ ! -x $1 ]; then
	    echo The door to \"$1\" is locked!;
	else
	    cd $1;
	    $HOME/mdsh/mdsh.pl go;
	fi
    else
	echo You can\'t get to \"$1\" from here!
    fi
}

examine() {
    $HOME/mdsh/mdsh.pl examine $1
}

take() {
    $HOME/mdsh/mdsh.pl take $@
}

drop() {
    $HOME/mdsh/mdsh.pl drop $@
}

inventory() {
    $HOME/mdsh/mdsh.pl inventory
}

use() {
    $HOME/mdsh/mdsh.pl use $@
}

jump() {
    echo WooOOoopie!
}

fuck() {
    echo Watch your language or I\'ll make you wash your mouth with soap!
}

trap '$HOME/mdsh/mdsh.pl quit' 0

### MDSH END ###
