Tested in:
GNU bash, version 2.05.0(1)-release (sparc-sun-solaris2.9)
GNU bash, version 3.2.25(16)-release (i686-pc-cygwin)
An example:
function testfunc ()
{
echo "this is test"
}
>From shell:
$ declare -f | grep testfunc -A 3 | cat -A
Result; notice the trailing whitespaces in output:
testfunc () $
{ $
echo "this is test"$
}$
Jari
--
Welcome to FOSS revolution: we fix and modify until it shines
