On 6/21/24 6:05 AM, M wrote:
*Version and Release Status:* Readline 8.2.010-1*Machine and OS:* Linux artix 6.9.2-artix1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 08:20:18 +0000 x86_64 GNU/Linux*Compilation Flags:* Not applicable*Description of the Bug:* When using Readline's vi mode in Bash and transitioning from insert mode to command mode (normal mode) using the ESC key, subsequent commands executed do not automatically reset the mode to insert mode (|>| prompt) after pressing Enter to execute the command. Instead, the mode remains in normal mode (|:| prompt) until the command completes execution and returns to the shell prompt (|>| prompt).
This is not a bug. Readline should not enter vi insert mode until it is called again to read a command. It doesn't know that vi insert mode will be appropriate. What if the command being executed were `set -o emacs'? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature