Hi,
even after i am setting the trace on(set -x), trace is not printed.
can you please tell me what is the error. below is the code & output.
Thanks in advance,
Harish
-------------------------------------------------
test.sh
-------------------------------------------------
#! /bin/ksh
#set debugging on/off
_DBG="on"
function DEBUG
{
[ "$_DBG" == "on" ] && $@ || :
}
DEBUG echo "debugging on"
DEBUG set -x
cp x.dat y.data
exit 0
-------------------------------------------------
output is :
-------------------------------------------------
debugging on
-------------------------------------------------
it is not printing the copy command, why is it so?