Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Aug 24, 2008
1 parent c8d93d9 commit 86f173d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions command/source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ _Dbg_help_add source \
_Dbg_do_source() {
typeset filename
if (( $# == 0 )) ; then
_Dbg_errmsg 'Need to give a filename for the "source" command'
_Dbg_errmsg 'Need to give a filename for the "source" command.'
return 1
fi
_Dbg_glob_filename $1
_Dbg_glob_filename "$1"
if [[ -r $filename ]] || [[ "$filename" == '/dev/stdin' ]] ; then
# Open new input file descriptor and save number in _Dbg_fd.
exec {_Dbg_fd[++_Dbg_fd_last]}<"$filename"
# We'll store the filename for good measure too.
_Dbg_cmdfile+=("$filename")
else
_Dbg_errmsg "Source file $filename is not readable."
Expand Down
2 changes: 1 addition & 1 deletion dbg-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ done

# Have we already specified where to read debugger input from?
if [ -n "$DBG_INPUT" ] ; then
_Dbg_do_source $DBG_INPUT
_Dbg_do_source "$DBG_INPUT"
_Dbg_no_init=1
fi

Expand Down
6 changes: 3 additions & 3 deletions dbg-trace.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ done
typeset _Dbg_main="$_Dbg_libdir/dbg-main.sh"
if [[ ! -r $_Dbg_main ]] ; then
print "${_Dbg_pname}: Can't read debugger library file '${_Dbg_main}'."
print "${_Dbg_pname}: Perhaps kshdb is installed wrong (if its installed)." >&2
print "${_Dbg_pname}: Try running kshdb using -L (with a different directory)." >&2
print "${_Dbg_pname}: Run kshdb --help for a list and explanation of options." >&2
print "${_Dbg_pname}: Perhaps @PACKAGE@ is installed wrong (if its installed)." >&2
print "${_Dbg_pname}: Try running @PACKAGE@ using -L (with a different directory)." >&2
print "${_Dbg_pname}: Run @PACKAGE@ --help for a list and explanation of options." >&2
exit 1

fi
Expand Down

0 comments on commit 86f173d

Please sign in to comment.