From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3157 invoked from network); 6 Oct 2002 17:15:14 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 6 Oct 2002 17:15:14 -0000 Received: (qmail 26903 invoked by alias); 6 Oct 2002 17:15:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17780 Received: (qmail 26879 invoked from network); 6 Oct 2002 17:15:03 -0000 From: "Bart Schaefer" Message-Id: <1021006171435.ZM11988@candle.brasslantern.com> Date: Sun, 6 Oct 2002 17:14:35 +0000 In-Reply-To: <20021006170353.GA531@dman.com> Comments: In reply to Clint Adams "Re: db module" (Oct 6, 1:03pm) References: <20021006053229.GA14350@dman.com> <20021006122451.GV24160@malachi.theoscape.net> <1021006164658.ZM11928@candle.brasslantern.com> <20021006170353.GA531@dman.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh workers Subject: Re: db module MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 6, 1:03pm, Clint Adams wrote: } } So, if I grasp the concept correctly, one could do something like } } db.get() { .sh.value=$(db_get thisdb "$.sh.subscript"); } Yes, except that, like e.g. the stat module's -A and -H options, I was thinking that the name of the parameter to which to assign would be an argument to the db_get function so that the $(...) would not be needed. Either that, or db_get would always assign to .sh.value and would thus only be callable from a discipline function. } > } f() { [ "$2" ] && echo $2 > $1; cat $1 } } > } > I confess to having no idea what that's supposed to mean. } } I think he's trying to say that var[5]=xyz would call $(f 5 xyz). Ah. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net