One of my users complained that the debug trap was printing their command
after edit-and-execute-command when using my script, which depends on debug
traps. I noticed that bash 5.0 made this change to run_debug_trap() that
would fix the problem:

+      old_verbose = echo_input_at_read;
+#if 0  /* not yet */
+      echo_input_at_read = 0;
+#endif
+
       trap_exit_value = _run_trap_internal (DEBUG_TRAP, "debug trap");

+      echo_input_at_read = old_verbose;

My questions are:
1. Is the #if is ready to be removed yet?
2. If not, what the plans are to make progress on enabling this fix?

I don't see a way to work around it myself, other than not using debug
traps which isn't an option as far as I can tell. I'll help in any way I
can.

Thanks,
George

Reply via email to