help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: realine messup with dynamic PS1


From: Chet Ramey
Subject: Re: realine messup with dynamic PS1
Date: Mon, 10 Aug 2026 11:34:42 -0400
User-agent: Mozilla Thunderbird

On 8/6/26 11:33 AM, Christoph Anton Mitterer wrote:

On Thu, 2026-08-06 at 11:22 -0400, Chet Ramey wrote:
So the \[ and \] produced by command substitution are not expanded
into
the special characters readline requires.

+

If you want to make this work, you have to expand to the \001 and
\002 characters readline interprets

I guess it's not feasible to adapt readline so that it also understand
\[ and \] directly?

It's not compatible with existing behavior, and certainly would not be
transparent.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]