Skip to content

Commit 6beeda3

Browse files
committed
Fix step+ and step- commands in bashdb. Before, step+ and step- were registered as seperate commands and not as aliases. Also, the suffix matching wasn't working in _Dbg_do_step for suffix values - and +.
1 parent dda77ff commit 6beeda3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

command/step.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ _Dbg_help_add 'step+' \
4343
In contrast to \"step\", we ensure that the file and line position is
4444
different from the last one just stopped at.
4545
46-
See also \"step-\" and \"set force\"."
46+
See also \"step-\" and \"set force\"." 0
4747

4848
_Dbg_help_add 'step-' \
4949
"step- -- Single step a statement without the \`step force' setting.
5050
5151
Set step force may have been set on. step- ensures we turn that off for
5252
this command.
5353
54-
See also \"step\" and \"set force\"."
54+
See also \"step\" and \"set force\"." 0
5555

5656
# Step command
5757
# $1 is command step+, step-, or step
@@ -68,7 +68,7 @@ _Dbg_do_step() {
6868
typeset suffix
6969
suffix=${_Dbg_last_next_step_cmd:${#_Dbg_last_step_next_cmd}-1:1}
7070

71-
case "suffix" in
71+
case "$suffix" in
7272
'+' ) _Dbg_step_force=1 ;;
7373
'-' ) _Dbg_step_force=0 ;;
7474
* ) _Dbg_step_force=$_Dbg_set_different ;;

lib/processor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ _Dbg_onecmd() {
380380

381381
# single-step
382382
'step+' | 'step-' )
383-
_Dbg_do_step "$_Dbg_cmd" $_Dbg_args
383+
_Dbg_do_step $_Dbg_args
384384
return 0
385385
;;
386386

0 commit comments

Comments
 (0)