ksh use set -x to enable trace but how can it be disable and re-enable in a ksh program

I may have ksh program like this:

#/usr/bin/ksh

sub_a()
{
}

sub_b()
{
}

sub_c
{
}

set -x
sub_a
#command to disable set -x
# I want to disable set -x afte sub_a has been executed
# following active from sub_b should not be display
sub_b
sub_c
tindavidAsked:
Who is Participating?
 
pritamduttCommented:
You can use
set +x

Open in new window

right before you want to disable trace.

Hope this helps.

Regards,
0
 
tindavidAuthor Commented:
good
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.