[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tracing inside functions
From: |
Nic James Ferrier |
Subject: |
tracing inside functions |
Date: |
Thu, 31 May 2007 13:12:50 +0100 |
Using bash 2.05, does anyone know of a way to get a trace of what's
happening inside a function?
eg file /root/myscript:
#!/bin/bash
function x
{
LIST=`ls /someplace`
[ "$LIST" == "" ] && exit 0
mv $LIST /tmp
}
x
and then:
bash -x /root/myscript
will only show:
x
I'd like to see inside the function.
Bash 3 looks like it has extra debug stuff under shopt... but not
2.05.
Any clues?
--
Nic Ferrier
http://www.tapsellferrier.co.uk
- tracing inside functions,
Nic James Ferrier <=