@@ -29,13 +29,13 @@ typeset _Dbg_release='@PACKAGE_VERSION@'
29
29
typeset _Dbg_bashdb_main=' @DBGR_MAIN@'
30
30
31
31
# The short shell name. Helps keep code common in bash, zsh, and ksh debuggers.
32
- typeset _Dbg_shell_name=${_Dbg_shell##*/ } # Equivalent to basename(_Dbg_shell)
32
+ typeset _Dbg_shell_name=" ${_Dbg_shell##*/ } " # Equivalent to basename(_Dbg_shell)
33
33
34
34
# Original $0. Note we can't set this in an include.
35
- typeset _Dbg_orig_0=$0
35
+ typeset _Dbg_orig_0=" $0 "
36
36
37
37
# Equivalent to basename $0; the short program name
38
- typeset _Dbg_pname=${0##*/ }
38
+ typeset _Dbg_pname=" ${0##*/ } "
39
39
40
40
# # Stuff set by autoconf/configure ###
41
41
# @PKGDATADIR@ often uses $prefix, _Dbg_libdir must be a global variable
@@ -44,11 +44,11 @@ _Dbg_assign_libdir() { typeset prefix="@prefix@"; _Dbg_libdir="@PKGDATADIR@"; };
44
44
45
45
# We agonize a bit over _Dbg_libdir: the root directory for where
46
46
# debugger code is stored.
47
- [[ -d $_Dbg_libdir ]] || _Dbg_libdir=${_Dbg_bashdb_main%/* } # dirname(_Dbg_bashdb_main)
48
- [[ -d $_Dbg_libdir ]] || _Dbg_libdir=' .'
47
+ [[ -d " $_Dbg_libdir " ]] || _Dbg_libdir=" ${_Dbg_bashdb_main%/* } " # dirname(_Dbg_bashdb_main)
48
+ [[ -d " $_Dbg_libdir " ]] || _Dbg_libdir=' .'
49
49
50
50
typeset _Dbg_main=" $_Dbg_libdir /dbg-main.sh"
51
- if [[ ! -r $_Dbg_main ]] ; then
51
+ if [[ ! -r " $_Dbg_main " ]] ; then
52
52
echo " ${_Dbg_pname} : Can't read debugger library file '${_Dbg_main} '."
53
53
echo " ${_Dbg_pname} : Perhaps @PACKAGE@ is installed wrong (if its installed)." >&2
54
54
echo " ${_Dbg_pname} : Try running @PACKAGE@ using -L (with a different directory)." >&2
@@ -57,6 +57,6 @@ if [[ ! -r $_Dbg_main ]] ; then
57
57
fi
58
58
59
59
# Pull in the rest of the debugger code.
60
- . $_Dbg_main
60
+ . " $_Dbg_main "
61
61
62
62
trap ' _Dbg_debug_trap_handler 0 "$BASH_COMMAND" "$@"' DEBUG
0 commit comments