Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Backticks and other tricks



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