Subject: Re: [golf?] harvesting only the mached part of the matched files
From: Marc Chantreux <[email-masked]>
To: Bart Schaefer <[email-masked]>
Cc: Zsh hackers list <[email-masked]>
Date: Tue, 26 Apr 2016 14:31:48 +0200
List-Id: Zsh Workers List <zsh-workers.zsh.org>

hello Bart and thanks for helping again

On Mon, Apr 25, 2016 at 09:32:08AM -0700, Bart Schaefer wrote:
> 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} )':) )

which is awesome: i missed $reply so many times! i'm very happy it
exits. this one:

	k=( /dev/sg<->(on:t:s/sg/) )

is very nice too! :t is a very good idea.

regards!

marc