Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
cross-product array function?
- X-seq: zsh-users 1308
- From: Sweth Chandramouli <sweth@xxxxxxxxxxxxxxxxxxxx>
- To: ZSH Users <zsh-users@xxxxxxxxxxxxxxx>
- Subject: cross-product array function?
- Date: Tue, 3 Feb 1998 14:08:51 -0500
- Mail-followup-to: ZSH Users <zsh-users@xxxxxxxxxxxxxxx>
is there a function in zsh to take two arrays/lists, and create a new
one that is their cross-product? in es (extensible shell), i could do
foo="first second third";
bar="word person base";
echo foo^bar;
and the output would be the following list:
"firstword secondword thirdword firstperson secondperson thirdperson firstbase
secondbase thirdbase"
is there some similar function in zsh?
tia,
sweth.
--
"Countin' on a remedy I've counted on before
Goin' with a cure that's never failed me
What you call the disease
I call the remedy" -- The Mighty Mighty Bosstones
Messages sorted by:
Reverse Date,
Date,
Thread,
Author