Subject: Re: [golf?] harvesting only the mached part of the matched files
From: Bart Schaefer <[email-masked]>
To: Zsh hackers list <[email-masked]>
Date: Mon, 25 Apr 2016 09:32:08 -0700
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Mon, Apr 25, 2016 at 8:19 AM, Marc Chantreux <[email-masked]> 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/) )