Fwd: playing with IFS
"Mark J. Reed" <[email protected]> Mon, 13 Apr 2026 11:53:29 -0400
| Newsgroups | gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAA=-s3zL16fwU+5bAyei748eUpGUgNhRfWM=BNjjsFaVb+B-ew@mail.gmail.com> |
Accidentally replied only to Dana. ---------- Forwarded message --------- From: Mark J. Reed <[email protected]> Date: Mon, Apr 13, 2026 at 8:58 AM Subject: Re: playing with IFS To: dana <[email protected]> On Sun, Apr 12, 2026 at 10:47 PM dana <[email protected]> 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 <[email protected]> -- Mark J. Reed <[email protected]>