You can use a parameter expansion flag to split the string at newlines:
for line in ${(f)list}; do ...
See http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion-Flags
CLICK HERE to find out more related problems solutions.
You can use a parameter expansion flag to split the string at newlines:
for line in ${(f)list}; do ...
See http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion-Flags
CLICK HERE to find out more related problems solutions.