commit bash-20041124 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:40:27 -05:00
parent eb2bb5621f
commit 54cdd75ae4
28 changed files with 2599 additions and 1133 deletions
+3 -3
View File
@@ -56,7 +56,7 @@ fn4() {
#
# Test of support for debugging facilities in bash
#
# Test debugger set option fntrace - set on. Not in vanilla Bash 2.05
# Test debugger set option functrace - set on. Not in vanilla Bash 2.05
#
set -o functrace
trap 'print_debug_trap $LINENO' DEBUG
@@ -72,7 +72,7 @@ fn2
fn3
source ./dbg-support.sub
# Test debugger set option fntrace - set off
# Test debugger set option functrace - set off
set +T
# We should not trace into this.
@@ -82,7 +82,7 @@ fn3
fn4
source ./dbg-support.sub
# Another way to say: set -o fntrace
# Another way to say: set -o functrace
set -T
# We should trace into this.
+1 -1
View File
@@ -62,7 +62,7 @@ set -o functrace
trap 'print_debug_trap $LINENO' DEBUG
trap 'print_return_trap $LINENO' RETURN
# Funcname is now an array. Vanilla Bash 2.05 doesn't have FUNCNAME array.
# Funcname is now an array, but you still can't see it outside a function
echo "FUNCNAME" ${FUNCNAME[0]:-main}
# We should trace into the below.