Re: playing with IFS
"Mark J. Reed" <[email protected]> Sun, 12 Apr 2026 18:44:15 -0400
| Newsgroups | gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAA=-s3xCx2qzJ+=F3tnnXWhuHY4ZeSr-nB02KHZJZ3Kez9ii9Q@mail.gmail.com> |
You know, Ray, you'd get better answers to your questions if you started
out by telling us what you're trying to do instead of just giving us the
code that supposedly does it. A lot of the time you're in the land of X/Y
problems and therefore asking the wrong questions.
> output=( ${(f) "$( print -rl $output | sed [cut] )" } )
That looks like you're trying to apply a transformation to each element of
an array
On Sun, Apr 12, 2026 at 6:30 PM dana <[email protected]> wrote:
> On Sun 12 Apr 2026, at 17:24, dana wrote:
> > you felt the need to mess with IFS because you took out the ${(f)...},
> > not because you added the here string
>
> oh i realised it's probably because you are trying to join an array by
> \n's. if that's true, and again you can't just use zsh's native
> functionality, you can use ${(F)...} on the inside as philippe showed
>
> dana
>
>
--
Mark J. Reed <[email protected]>