Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: cross-product array function?



On Tue, 3 Feb 1998, Andrew Main wrote:

#foo=(first second third)
#bar=(word person base)
#echo $^foo$^bar

I attempted this, and I had an odd result on the first element of the
first array.  Is this broken in the version I use?

natej:~> ONE=(1 2 3)
natej:~> TWO=(A B C)
natej:~> echo $^ONE$^TWO
1C 2A 2B 2C 3A 3B 3C

zsh: 3.0.0





Messages sorted by: Reverse Date, Date, Thread, Author