mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-08 03:02:40 +02:00
commit bash-20041124 snapshot
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user