From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26066 invoked by alias); 26 Apr 2016 12:41:26 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38347 Received: (qmail 25677 invoked from network); 26 Apr 2016 12:41:24 -0000 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 autolearn=ham autolearn_force=no version=3.4.1 Date: Tue, 26 Apr 2016 14:31:48 +0200 From: Marc Chantreux To: Bart Schaefer Cc: Zsh hackers list Subject: Re: [golf?] harvesting only the mached part of the matched files Message-ID: <20160426123148.GA22755@home.u-strasbg.fr> References: <20160425151919.GA3926@home.u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: ClamAV using ClamSMTP 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 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