On Fri, Dec 22, 2023 at 07:25:30AM +0000, email--- via Bug reports for the GNU 
Bourne Again SHell wrote:
> On 2023-12-21 17:32, Alex Ratchev wrote:
> 
> > do u really PS1=\[\033 etc ?
> > 
> > try PS1='\[\e...'
> > 
> > in ' quotes
> 
> I forgot quotes from the email. But I did not know that '\e' is valid
> ANSI escape sequence prefix.

It's not ANSI.  It's bash.  Specifically, bash allows \e as a synonym
for \033 when expanding PS1, and inside $'...' quotes, and in readline
key sequence definitions, and in arguments to echo with the -e option.
It also allows \e in the printf format argument, though I don't see
this mentioned in the documentation.

Reply via email to