From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5201 invoked by alias); 5 Feb 2010 15:15:25 -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: 27666 Received: (qmail 6122 invoked from network); 5 Feb 2010 15:15:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.219.227 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=o0izsPrSfyuSKm/nop7wntU/fu1iNrRclOS0r7iShro=; b=mOMJHM1PhxnKviy2gDEZgsy6mKPshWnqPO+VJliKkGrR7NeH6xub47j5+Q3/WO4Y/W i9GlSnm7BVQAld1hf052vlOVlVdqyy/tSJuFPSdYtG61okVhUZgVtybQdMUOXukYzvf9 KEZcwsEd311OuzFj2vp2sRdEUdEJMFxuVuxA8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fT4kjnjCbhMgnHNKhaM74sJdVX6NjmBnDAIw14UzqLhWDxiOGra1OQErS0ZCMb2bg4 AD7Brhmj1yQ15ZDoLzZnfCRs429pXf+LIRCdK4PytBp3uAm+dJZ1j28PFfmEMlsuu0xV HmtEiuSoMhyyabpYHlKmW1CdR8nNo3e76urVM= MIME-Version: 1.0 Date: Fri, 5 Feb 2010 16:15:17 +0100 Message-ID: <237967ef1002050715o3be2d441rcc8dbeb3e2b00483@mail.gmail.com> Subject: extra arguments inserted by glob thinger e:: get sorted afterwards From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 Hi, someone just asked on irc how to give a globbed list of files to a program with a -f inserted before each argument, so I told him *(e:'reply=(-f $REPLY)':), that doesn't work however, as the arguments are resorted afterwards, which seems like the less useful way to do it. Of course one can add oN, but it would be nicer if you could both sort files and add extra arguments. Stuff like oa doesn't make sense on the inserted arguments anyway. % print -- *.sh(oNe:'reply=(-f $REPLY)':) -f zmpc.sh -f ifs.sh -f test.sh -f script_pandora.sh % print -- *.sh(e:'reply=(-f $REPLY)':) -f -f -f -f ifs.sh script_pandora.sh test.sh zmpc.sh -- Mikael Magnusson