zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [golf?] harvesting only the mached part of the matched files
Date: Mon, 25 Apr 2016 09:32:08 -0700	[thread overview]
Message-ID: <CAH+w=7aD+XEadJxY6mPfGa8Rqbqbv9Qc9nZds1TvwLi5C+HKcQ@mail.gmail.com> (raw)
In-Reply-To: <20160425151919.GA3926@home.u-strasbg.fr>

On Mon, Apr 25, 2016 at 8:19 AM, Marc Chantreux <khatar@phear.org> wrote:
>         k=()
>         : /dev/sg[0-9]##(one:'k+=${REPLY#/dev/sg}':)

Yours would be better as:
k=( /dev/sg<->(one:'reply=( ${REPLY#/dev/sg} )':) )

But this is probably shortest:
k=( /dev/sg<->(on:t:s/sg/) )


  reply	other threads:[~2016-04-25 16:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25 15:19 Marc Chantreux
2016-04-25 16:32 ` Bart Schaefer [this message]
2016-04-26 12:31   ` Marc Chantreux

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='CAH+w=7aD+XEadJxY6mPfGa8Rqbqbv9Qc9nZds1TvwLi5C+HKcQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).