bug-bash
[Top][All Lists]
Advanced

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

Re: Bash not escaping escape sequences in directory names


From: Alex fxmbsw7 Ratchev
Subject: Re: Bash not escaping escape sequences in directory names
Date: Fri, 21 Jan 2022 09:48:09 +0100

maybe sub'ing them away, or making it print \\e instead \e

On Fri, Jan 21, 2022, 09:24 Lawrence Velázquez <vq@larryv.me> wrote:

> On Fri, Jan 21, 2022, at 12:22 AM, L A Walsh wrote:
> > On 2022/01/18 22:31, Alex fxmbsw7 Ratchev wrote
> >>> Fix:
> >>> Haven't looked deeply into the bash internals but sanitizing the
> directory
> >>> name (along with other user-controlled substitutions in the prompt)
> should
> >>> work.
> >>>
> > Sanitizing? What's that?
> > Especially in a way that won't break existing legal usages?
>
> Curious what "existing legal usages" there are for allowing a change
> of working directory to result in arbitrary escape sequences being
> sent to your terminal.
>
> --
> vq
>
>


reply via email to

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