Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: db module
- X-seq: zsh-workers 17780
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: db module
- Date: Sun, 6 Oct 2002 17:14:35 +0000
- In-reply-to: <20021006170353.GA531@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <E17w1iC-00012d-00@xxxxxxxxxxxxxxxxxx> <20021006053229.GA14350@xxxxxxxx> <20021006122451.GV24160@xxxxxxxxxxxxxxxxxxxxx> <1021006164658.ZM11928@xxxxxxxxxxxxxxxxxxxxxxx> <20021006170353.GA531@xxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author