Browse code

Merge "Handle case where FUNCNAME[0] is undefined"

Jenkins authored on 2016/02/11 11:14:47
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@ LC_ALL=C
15 15
 export LC_ALL
16 16
 
17 17
 # Make tracing more educational
18
-export PS4='+ ${BASH_SOURCE}:${FUNCNAME[0]}:L${LINENO}:   '
18
+export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}:   '
19 19
 
20 20
 # Find the other rc files
21 21
 RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)