On 6/14/26 8:52 PM, Koichi Murase wrote:
2026年6月12日(金) 4:24 Chet Ramey <[email protected]>:On 6/9/26 6:07 PM, Koichi Murase wrote:Yes, we agree that they should simply vanish. We are talking about the details of when they should vanish. Actually, the current behavior of the devel branch fails to properly remove \x01 and \x02 embedded in a command substitution, such as `$(prompt-framework git-status)'. In fact, prompt frameworks such as Starship embed \x01 and \x02 in their output to change colors and styles in the middle of their output. To remove \x01 and \x02 properly, they should be removed at the very last step, as we are requesting in the present thread.Are you saying that bash should remove 0x01 and 0x02 anywhere they appear in a prompt string, even if they are not added behind the scenes as part of processing \[ and \] before passing the prompt to readline?Yes? But isn't that the behavior of PS1?
Yes, but the example you used was \1 and \2 in the output of command
substitution. Do you think this hypothetical `removal' of the markers
as part of some new PS0/PS4 post-processing step should include those,
or just the markers that prompt string expansion added itself?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
