Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to;
        bh=menpnr6zbOmUbFxs/sCLGbSPKEjW/DlwyS+URDikeW0=;
        b=C9i1lWqih/pUQb+g74BaZfjj/sPTsPMnOVvPCidloLatiEy/jz7PNFT5i4IGW6FuU4
         jvIOAa4tuIUrkeR4jmurDTSKKmHAPbxjszW79p6YbRVqVHAroCs+75EoAQw5GCaka/tb
         eDDEt1H3OujL5YG/Xek07I7cB9X/91giPabA7vOG9a7PoHPVeY/oxMAyBR+Qer3URtgJ
         hepZ2qW4Pu5Ijb2/KgETmhgxwucYWgM+AbMik5VRdFeBJrAaZSVUtL3/SFDUbGyMEO96
         VOWqb5Y/YxqoZvShfOlPCiBQOpZ2NEclE21lUbeNXqCCGXmC02yjms7/T6feB55pKuO1
         C55g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to;
        bh=menpnr6zbOmUbFxs/sCLGbSPKEjW/DlwyS+URDikeW0=;
        b=IxrXxq9g2MWbABR1N8wIxWNxycJsSVsg8uf82clxnHGW+JvWyXvo7imgMcH2Tgf06Z
         bcz/9wXito3PBShkc0W5ilv+vNoealNrWhR5IYzBXToEtucsfhTLSONfGczgIqDh5pD2
         VJ/FqNN11i+cRrHf9ZXAm2M2aE1FZH0qUwUximoew3fk9KH//ta3pBCPk7Tx3zYcCXpQ
         2bsJiPKPiNvTz4g0ySu5AOzm6XT4L5ZF7hVud6f0W0DxMtoy6i7fqlieLVCmLKshca8y
         PA6HQxtKZDmW/Vda1xARdQLXKJb/jOf7/Yue0b4INmr/D6ilWvAei7xwcOSGFBYojqut
         oSAg==
X-Gm-Message-State: AOPr4FXFKYqHuawv2NdF9X4QCx8UYQ+pJiAsK8I0E97jLy5qKUrtoWhY7653eNnf1kYFtYZmx/oN5blA6YWMIQ==
MIME-Version: 1.0
X-Received: by 10.112.161.41 with SMTP id xp9mr14113610lbb.133.1461601928098;
 Mon, 25 Apr 2016 09:32:08 -0700 (PDT)
In-Reply-To: <20160425151919.GA3926@home.u-strasbg.fr>
References: <20160425151919.GA3926@home.u-strasbg.fr>
Date: Mon, 25 Apr 2016 09:32:08 -0700
Message-ID: <CAH+w=7aD+XEadJxY6mPfGa8Rqbqbv9Qc9nZds1TvwLi5C+HKcQ@mail.gmail.com>
Subject: Re: [golf?] harvesting only the mached part of the matched files
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Content-Type: text/plain; charset=UTF-8
X-Seq: zsh-workers 38336

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/) )

