Skip to content

Commit

Permalink
bashsupport-pro: Disable bashdb prompt's readline integration because…
Browse files Browse the repository at this point in the history
… it may break with a custom inputrc mapping of "Control-J".
  • Loading branch information
jansorg committed Oct 9, 2024
1 parent 91288cc commit ef38f54
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/processor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ typeset _Dbg_space=' '
# Should we allow editing of debugger commands?
# The value should either be '-e' or ''. And if it is
# on, the edit style indicates what style edit keystrokes.
typeset _Dbg_edit='-e'
typeset _Dbg_edit='' # BashSupport Pro: removed '-e' to disable readline support because it may break with custom inputrc settings
typeset _Dbg_edit_style='emacs' # or vi
set -o $_Dbg_edit_style

Expand Down
1 change: 1 addition & 0 deletions test/data/bug-loc.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set trace-commands on
set editing emacs
# Test to see that we read in files that mentioned in breakpoints
# but we don't step into.
step
Expand Down
3 changes: 3 additions & 0 deletions test/data/bug-loc.right
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
(bug-loc.sh:5):
5: dirname=${BASH_SOURCE%/*} # equivalent to dirname($0)
+set editing emacs
Editing of command lines as they are typed is on.
Edit style is emacs.
+# Test to see that we read in files that mentioned in breakpoints
+# but we don't step into.
+step
Expand Down
4 changes: 2 additions & 2 deletions test/data/misc-output-41.right
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ set autolist -- Run list command is off.
set basename -- Set short filenames (the basename) in debug output is on.
set debug -- Set debugging the debugger is off.
set different -- Set to stop at a different line is different
set editing -- Set editing of command lines as they are typed is on.
set highlight -- Set syntax highlighting of source listings is on.
set editing -- Set editing of command lines as they are typed is off.
set highlight -- Set syntax highlighting of source listings is off.
set history -- Set record command history is off.
set linetrace -- Set tracing execution of lines before executed is off.
set listsize -- Set number of source lines bashdb will list by default.
Expand Down
3 changes: 1 addition & 2 deletions test/data/setshow.right
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ autolist : Auto run of 'list' command is off.
basename : Show short filenames (the basename) in is on.
debug : Allow debugging the debugger is off.
different : Stepping forces stopping at a new line is off.
editing : Editing of command lines as they are typed is on.
Edit style is emacs.
editing : Editing of command lines as they are typed is off.
highlight : Syntax highlight in source listings is off.
history --
filename: The filename in which to record the command history is
Expand Down

0 comments on commit ef38f54

Please sign in to comment.