Re: [MTT users] funclet and quoting

2007-06-14 Thread Jeff Squyres
On Jun 12, 2007, at 6:00 PM, Ethan Mallove wrote: We'll need to revamp all the current funclets to accept arrays and return [potentially] arrays of arrays. What if, as a counterproposal, we have a () funclet? Then you could do the following: btls = ("if ($hostname =~ /foo/) {

Re: [MTT users] funclet and quoting

2007-06-12 Thread Ethan Mallove
On Tue, Jun/12/2007 04:53:21PM, Jeff Squyres wrote: > On Jun 12, 2007, at 10:50 AM, Ethan Mallove wrote: > > >>> eval $btls = MTT::Functions::if(MTT::Functions::regexp > >>> (MTT::Functions::shell("hostname"), "v440-2|v20z-2"), > >>> MTT::Functions::enumerate("self,sm,tcp"), >

Re: [MTT users] funclet and quoting

2007-06-12 Thread Jeff Squyres
On Jun 12, 2007, at 10:50 AM, Ethan Mallove wrote: eval $btls = MTT::Functions::if(MTT::Functions::regexp (MTT::Functions::shell("hostname"), "v440-2|v20z-2"), MTT::Functions::enumerate("self,sm,tcp"), MTT::Functions::if("MTT::Functions::regexp

Re: [MTT users] funclet and quoting

2007-06-12 Thread Ethan Mallove
On Tue, Jun/12/2007 08:07:20AM, Jeff Squyres wrote: > On Jun 11, 2007, at 6:02 PM, Ethan Mallove wrote: > > > btls = ("("("hostname")", "v440-2|v20z-2")", \ > >"("self,sm,tcp")", \ > >"("("("hostname")", "v440-6")", \ > >"("udapl")", \ > >

Re: [MTT users] funclet and quoting

2007-06-12 Thread Jeff Squyres
On Jun 11, 2007, at 6:02 PM, Ethan Mallove wrote: btls = ("("("hostname")", "v440-2|v20z-2")", \ "("self,sm,tcp")", \ "("("("hostname")", "v440-6")", \ "("udapl")", \ "("sm", "tcp", "sm,tcp", "udapl", "sm,udapl")"" \ ) \ )