Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Backticks and other tricks
- X-seq: zsh-users 3760
- From: Andre Pang <andre@xxxxxxxxxxxxxxx>
- To: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: Backticks and other tricks
- Date: Thu, 29 Mar 2001 09:56:53 +1000
- In-reply-to: <20010328200619.A2815@xxxxxxxxxxxxxxxxx>; from jean-luc@xxxxxxxxxxxxxxxxx on Wed, Mar 28, 2001 at 08:06:19PM +0200
- Mail-followup-to: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200103280900.LAA06786@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1010328154142.ZM16104@xxxxxxxxxxxxxxxxxxxxxxx> <20010328200619.A2815@xxxxxxxxxxxxxxxxx>
- Sender: "Andre T. H. Pang" <andrep@exodus>
On Wed, Mar 28, 2001 at 08:06:19PM +0200, Thomas Köhler wrote:
> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> [...]
> >
> > One can always be creative:
> >
> > ${(kP)1} gives an array of keys, so
> > ${${(kP)1}[(i)$i]} gives the index of the key;
> > ${(vP)1} gives an array of values, so
> > ${${(vP)1}[${${(kP)1}[(i)$i]}]} is the answer.
>
> ..to the question "who wins the obfuscated zsh contest"? :-)
i wonder if Bart can write an obsfuscated DeCSS program in zsh ...
--
/ #ozone <andrep@xxxxxxxxxxxxxxx>; (mobile# 0411 882299)
trust in love to save
Messages sorted by:
Reverse Date,
Date,
Thread,
Author