#!/bin/bash

value=$1

if [ ! -n "$value" ]; then
    value=ON
fi

if [ -z "$DEBUG" ]; then
	export DEBUG=$value
    echo Debug was off. Now $DEBUG. 
    echo \(remember to use \". debug\" to affect the current shell\)
else
    echo Debug was $DEBUG. Now off.
	export DEBUG=
fi


