On 08/19/2015 12:18 PM, Rostislav Svoboda wrote:
>> set listx foo bar baz; for item in $listx; echo item: $item; end
> 
> ah :) thx
> BTW it would be great to put this example to the documentation. Could you do 
> that?

It is already documented.  Look at the man page of "for" or 
http://fishshell.com/docs/current/commands.html#for.  Look at the tutorial at 
http://fishshell.com/docs/current/tutorial.html which has this example:

> for val in $PATH
    echo "entry: $val"
  end


------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to