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

Re: playing with IFS



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 <dana@xxxxxxx> 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 <markjreed@xxxxxxxxx>


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