#!/bin/bash
LIST="one two three"
for item in $LIST ; do echo $item ; done
#!/bin/zsh
STRING="one two three"
LIST1=(${=STRING})
LIST2=(four five six)
for item in $LIST1 ; do echo $item ; done
for item in $LIST2 ; do echo $item ; done
for item (seven eight nine) ; do echo $item ; done
LIST='one two three'
which -s setopt >/dev/null && setopt SH_WORD_SPLIT
for item in $LIST1 ; do echo $item ; done
which -s setopt >/dev/null && unsetopt SH_WORD_SPLIT