1#!../../bash 2# -*- shell-script -*- 3# Note: no CVS Id line since it would mess up regression testing. 4# This code is used for various debugger testing. 5 6fn1() { 7 echo "fn1 here" 8 x=5 9 fn3 10} 11 12fn2() { 13 name="fn2" 14 echo "$name here" 15 x=6 16} 17 18fn3() { 19 name="fn3" 20 x=$1 21} 22 23# Test that set -xv doesn't trace into the debugger. 24set -xv 25x=24 26x=25 27for i in 0 1 3 ; do 28 ((x += i)) 29done 30set +xv 31x=27 32y=b 33x=29 34echo $(fn3 30) 35fn3 31 36fn1; 37fn3 33 38exit 0 39