Imported from ../bash-3.0.16.tar.gz.
[platform/upstream/bash.git] / tests / dbg-support.tests
index 27825d6..3a5e4ae 100755 (executable)
@@ -62,8 +62,8 @@ 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.
-echo "FUNCNAME" ${FUNCNAME[0]}
+# 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. 
 # Start easy with a simple function.