zsh-users
 help / color / mirror / code / Atom feed
From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh-users@sunsite.dk
Subject: Re: Backticks and                       other tricks
Date: Wed, 28 Mar 2001 20:06:19 +0200	[thread overview]
Message-ID: <20010328200619.A2815@picard.franken.de> (raw)
In-Reply-To: <1010328154142.ZM16104@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Wed, Mar 28, 2001 at 03:41:42PM +0000

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

On Wed, Mar 28, 2001 at 03:41:42PM +0000,
Bart Schaefer <schaefer@candle.brasslantern.com> 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"? :-)

SCNR,
Thomas

-- 
 Thomas Köhler Email:   jean-luc@picard.franken.de     | LCARS - Linux
     <><        WWW:     http://jeanluc-picard.de      | for Computers
                IRC:             jeanluc               | on All Real
               PGP public key available from Homepage! | Starships

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2001-03-28 18:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-28  9:00 Sven Wischnowsky
2001-03-28 15:41 ` Bart Schaefer
2001-03-28 18:06   ` Thomas Köhler [this message]
2001-03-28 23:56     ` Andre Pang
2001-03-29  3:57       ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2001-03-28  7:22 Mario Lang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010328200619.A2815@picard.franken.de \
    --to=jean-luc@picard.franken.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).