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

Fwd: playing with IFS



Accidentally replied only to Dana.

---------- Forwarded message ---------
From: Mark J. Reed <markjreed@xxxxxxxxx>
Date: Mon, Apr 13, 2026 at 8:58 AM
Subject: Re: playing with IFS
To: dana <dana@xxxxxxx>


On Sun, Apr 12, 2026 at 10:47 PM dana <dana@xxxxxxx> wrote:
i don't see the difference
The first one tries to put expansion flags in {} instead of (). That's nothing to do with spaces, Ray. It's always ${(flags)...} - curlies on the outside, parens on the inside. 
.
As for this:

     sed -r 's/(\x1b\[K[:-]\x1b\[m\x1b\[K)[[:space:]]*/\1 /g' 

Even if you stick with sed you might prefer an ANSI string version of the command:

     $'s/(\e\\[K[:-]\e\\[m\e\\[K)[ \t]*/\\1 /g'

--
Mark J. Reed <markjreed@xxxxxxxxx>


--
Mark J. Reed <markjreed@xxxxxxxxx>


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