Bug: garbled history search when using "\e[K" is PS1

2022-06-30 Thread Constantine Bytensky
Hello, There is a bug when I use “Erase in Lin” "\e[K" char in my PS1 prompt. How to reproduce: 1. Make PS1="\[\e[K\]" 2. Press ^R to start history-search 3. Type a few chars to find history string (assuming history not empty) 4. Press Enter of End to apply history string Result: Incomplete his

PATCH: PREEXEC_COMMAND

2022-06-09 Thread Constantine Bytensky
Hello, I want to propose patch that provides PREEXEC_COMMAND var similar to PROMPT_COMMAND.I believe that this patch is not first that you recieve but I will try. The patch is in attachment (I don’t trust gmail editor). Regards, Constantine diff --git a/doc/bash.1 b/doc/bash.1 index 5af7d42..33ba