Seems to be easier than thought:
function xxx
set listx \
"foo" \
"bar" \
"zee"
for item in $listx
echo "item: $item"
end
end
2015-08-19 18:08 GMT+02:00 Rostislav Svoboda <[email protected]>:
>
> Hi, I'd like to create a collection and iterate over it. Something like:
>
> function zaz
> set listx (
> "foo"
> "bar"
> "zee"
> )
> for item in $listx
> echo "item: $item"
> end
> end
>
>
> but I cannot find any example how to do it. Can you help me pls? Thx.
>
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users