Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zoo: zsh oriented object
- X-seq: zsh-users 11314
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: Zoo: zsh oriented object
- Date: Mon, 19 Mar 2007 18:03:33 +0100
- In-reply-to: <dbfc82860703180942w21989fd5u73240e7161c36fae@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070318163452.GA8209@xxxxxxxxxxxxxxxxxx> <dbfc82860703180942w21989fd5u73240e7161c36fae@xxxxxxxxxxxxxx>
Hi Nikolai,
> Hahaha, this is so incredibly on crack...I love it!
I'm very happy that you love it. I almost wrote it for you ;)
> I have no idea how useful this is,
> but there's certainly a coolness factor over it.
Well.. for the moment, it's just to encapsulate some parameters to deal
with flags of certain commands. For example:
# create an ad object that deals with ActiveDirectory
# ( objectClass=user, sAMAccountname ... )
new Ldap ad ...
$ad Isa ActiveDirectory
# create an ad object that deals with Posix schema
# ( objectClass=posixAccount, uid ... )
new Ldap directory ...
$directory Isa PosixDirectory
apply=( User mc passwd toto )
$ad $apply
$directory $apply
very simple use but i still find it very usefull!
regards
mc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author