[plug] bash script debugging/tracing

Jim Householder nofixed at westnet.com.au
Sat Jun 26 21:21:49 WST 2004


Brad Campbell wrote:
> Jim Householder wrote:
> 
>> I am looking for a facility in bash similar to 'echo -x' in csh which 
>> will display each line of a script just before it is executed and 
>> after all substitutions and expansions have been performed.
>>
>> The Advanced Bash-Scripting Guide indicates that there is nothing 
>> built in to bash, other than a lot of echos, to facilitate debugging.
>>
>> Any suggestions?
> 
> 
> sh -x <script file> works perfectly under bash here.
> 
In my specific case this would not work.  I was trying to find out why 
mdk-10's kde command (alias kde=xinit /usr/bin/startkde) was not working.

Is anybody using it?  I have been using startx with no problems.

Jim



More information about the plug mailing list