On Tue, Jun 16, 2009 at 17:22, James Aguilar <[email protected]>wrote:
> Hey guys,
> I'm a relatively new fish user and I've been doing a little scripting with
> it. I want to create a function that "returns" an array (in the sense that
> I can use it to set a variable to an array in a command substitution, like:
>
> set -l a_variable (my_array_emitting_function)
>
> Is it possible to do this in Fish? Another thing that would be nice is to
> be able to set an array directly to a variable. For example:
>
> set -l another_variable [1 2 3]
>
> And lastly, to be able to iterate over an array of arrays in a for loop.
> For example:
>
> for my_array in [1 2] [2 3] [3 4]
> echo $my_array[1] $my_array[2]
> end
>
> Apologies in advance if this question has already been asked: I tried
> Google and couldn't find anything. Also, I love this program. Thanks so
> much for writing it.
>
> -- James
>
In case it's relevant, I'm using Fish 1.22.3
-- James
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users