Skip to content

Commit 332f4e6

Browse files
committed
BashSupport Pro: Disable bashdb prompt's readline integration because it may break with a custom inputrc mapping of "Control-J".
1 parent d6d6622 commit 332f4e6

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

lib/processor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typeset _Dbg_space=' '
4040
# Should we allow editing of debugger commands?
4141
# The value should either be '-e' or ''. And if it is
4242
# on, the edit style indicates what style edit keystrokes.
43-
typeset _Dbg_edit='-e'
43+
typeset _Dbg_edit='' # BashSupport Pro: removed '-e' to disable readline support because it may break with custom inputrc settings
4444
typeset _Dbg_edit_style='emacs' # or vi
4545
set -o $_Dbg_edit_style
4646

test/data/bug-loc.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set trace-commands on
2+
set editing emacs
23
# Test to see that we read in files that mentioned in breakpoints
34
# but we don't step into.
45
step

test/data/bug-loc.right

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
(bug-loc.sh:5):
22
5: dirname=${BASH_SOURCE%/*} # equivalent to dirname($0)
3+
+set editing emacs
4+
Editing of command lines as they are typed is on.
5+
Edit style is emacs.
36
+# Test to see that we read in files that mentioned in breakpoints
47
+# but we don't step into.
58
+step

test/data/misc-output-50.right

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ set autolist -- Run list command is off.
8686
set basename -- Set short filenames (the basename) in debug output is on.
8787
set debug -- Set debugging the debugger is off.
8888
set different -- Set to stop at a different line is different
89-
set editing -- Set editing of command lines as they are typed is on.
89+
set editing -- Set editing of command lines as they are typed is off.
9090
set filename-display-- absolute.
91-
set highlight -- Set syntax highlighting of source listings is on.
91+
set highlight -- Set syntax highlighting of source listings is off.
9292
set history -- Set record command history is off.
9393
set linetrace -- Set tracing execution of lines before executed is off.
9494
set listsize -- Set number of source lines bashdb will list by default.

test/data/setshow.right

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,7 @@ autolist : Auto run of 'list' command is off.
308308
basename : Show short filenames (the basename) in is on.
309309
debug : Allow debugging the debugger is off.
310310
different : Stepping forces stopping at a new line is off.
311-
editing : Editing of command lines as they are typed is on.
312-
Edit style is emacs.
311+
editing : Editing of command lines as they are typed is off.
313312
filename-display: is basename.
314313
highlight : Syntax highlight in source listings is off.
315314
history --

0 commit comments

Comments
 (0)