[plug] bash script debugging/tracing
Brad Campbell
brad at wasp.net.au
Sat Jun 26 17:47:55 WST 2004
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.
bklaptop:~>bash --version
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
Regards,
Brad
More information about the plug
mailing list