Bash/readline coupling (was: PS0 vs. \[ \] followup)
From:
G. Branden Robinson
Subject:
Bash/readline coupling (was: PS0 vs. \[ \] followup)
Date:
Thu, 11 Jun 2026 15:57:12 -0500
At 2026-06-11T16:43:22-0400, Chet Ramey wrote:
> \1 and \2 are documented by readline as the way for applications to
> signal which characters in the prompt string are and are not visible
> for redisplay. Readline is used by dozens of other applications, some
> of which support their own mechanisms for using them. They are not
> bash-specific.
I think this fact would be significantly more obvious if readline and
Bash releases were not coupled. For as long as they are, the impression
that readline updates only where and when Bash needs it to is going to
be difficult to overcome.
Have you considered this?
Regards,
Branden