Skip to content

Commit

Permalink
Syncing bashdb4.4 and bashdb5 trees, wrap more source command args in…
Browse files Browse the repository at this point in the history
… quotes
  • Loading branch information
jansorg committed Oct 9, 2024
1 parent 9f6a5e7 commit 91288cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions command/info_sub/args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
# FIXME: put some of this into a mock
_Dbg_libdir=${top_dir}
for _Dbg_file in pre vars ; do
source ${top_dir}/init/${_Dbg_file}.sh
source "${top_dir}/init/${_Dbg_file}.sh"
done
for _Dbg_file in frame msg file journal save-restore alias ; do
source ${top_dir}/lib/${_Dbg_file}.sh
source "${top_dir}/lib/${_Dbg_file}.sh"
done
source ${top_dir}/command/help.sh
source "${top_dir}/command/help.sh"
_Dbg_set_debugger_entry
_Dbg_frame_adjusted_pos() {
typeset -i i=${1:-0}
Expand Down
5 changes: 4 additions & 1 deletion init/term-background.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ exit_if_not_sourced() {
# User should set up RGB_fg and RGB_bg arrays
xterm_compatible_fg_bg() {
typeset fg bg junk
stty -echo >/dev/null 2>&1
if stty -echo >/dev/null 2>&1; then
# Issue command to get both foreground and
# background color
# fg bg
Expand All @@ -126,6 +126,9 @@ xterm_compatible_fg_bg() {
IFS='/' read -ra RGB_bg <<< $bg
typeset -p RGB_fg
typeset -p RGB_bg
else
stty echo 2>/dev/null
fi
return 0
}

Expand Down

0 comments on commit 91288cc

Please sign in to comment.