Skip to content

Commit e137c39

Browse files
committed
Double quote to prevent globbing and word splitting
1 parent cd7a047 commit e137c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_unit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fake() {
123123

124124
stacktrace() {
125125
local i=1
126-
while ! [ -z ${BASH_SOURCE[$i]} ]
126+
while ! [ -z "${BASH_SOURCE[$i]}" ]
127127
do
128128
echo ${BASH_SOURCE[$i]}:${BASH_LINENO[$((i-1))]}:${FUNCNAME[$i]}\(\)
129129
i=$(($i + 1))

0 commit comments

Comments
 (0)