Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: coloring a substitution




On 2022-11-08 16:11, Bart Schaefer wrote:
On Tue, Nov 8, 2022 at 3:49 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
Therewego, > $'\e[' < replaces  > \x1b\[ <.
Actually $'\x1b[' would work too.  The important bit is that $'...'
triggers interpretation of those.

So sed figures out the interpretation of that escape by itself but zsh want's to make it explicit.  That's fine.  There's always the issue of what's literal unless made special vs what's special unless made literal and if you gain the one you lose the other. No free lunch.







Messages sorted by: Reverse Date, Date, Thread, Author