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: Christoph Anton Mitterer
Subject: Re: realine messup with dynamic PS1
Date: Wed, 05 Aug 2026 21:25:24 +0200
User-agent: Evolution 3.56.2-10+b1

Hey Greg.

On Wed, 2026-08-05 at 14:58 -0400, Greg Wooledge wrote:
> Astonishingly, the LLM is correct this time.  If your PS1 includes
> an expansion that has escape sequences, those escape sequences need
> to be surrounded by the ASCII bytes \001 and \002 instead of \[ and
> \].
> Essentially, you're converting the \[ \] into the internal format
> used
> by bash/readline yourself.

Ah... thanks :-D   Would it perhaps make sense to have this added to
the bash manpage?

Cheers,
Chris.



reply via email to

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