From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16991 invoked by alias); 8 Feb 2010 12:32:45 -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: 27688 Received: (qmail 12838 invoked from network); 8 Feb 2010 12:32:43 -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.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_HELO_PASS autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at alea.gnuu.de designates 83.246.114.63 as permitted sender) X-DKIM: Sendmail DKIM Filter v2.5.2 uucp.gnuu.de B282B48803A DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1265630670; i=@alea.gnuu.de; bh=OONQE9QIwPNNLAX7i+GNvKFmMX+fSYk7g GCbV0xMJeY=; h=To:From:Subject:Date:Message-ID:References: Mime-Version:Content-Type:Content-Transfer-Encoding:Sender; b=JXuy RuWzWfN7atraCePyaINpayUXhxj1XGzCP6HQsd2pljQN30wJNK08RQybZpyObflINQE 45tUzgJUFKRCltch6CVebQj7pZ6WfemMIl21J9H9stYfqyo/Wu01c+Fabgqz10EiNYT 4Py6qJtZmRCHAMtanep+WxIACqkaFYO9Y= To: zsh-workers@zsh.org Path: not-for-mail From: =?UTF-8?Q?J=C3=B6rg?= Sommer Newsgroups: local.mailinglist.zsh Subject: Re: extra arguments inserted by glob thinger e:: get sorted afterwards Date: Mon, 8 Feb 2010 10:08:06 +0000 (UTC) Message-ID: References: <237967ef1002050715o3be2d441rcc8dbeb3e2b00483@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: alea.gnuu.de 1265623686 3952 192.168.0.5 (8 Feb 2010 10:08:06 GMT) X-Complaints-To: usenet@alea.gnuu.de User-Agent: slrn/pre1.0.0-16 (Linux) Sender: news Hello Mikael, Mikael Magnusson wrote: > 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 Why not use $^? % print -- -f\ ${(f)^"$(print -l /bin/ls*)"} -f /bin/ls -f /bin/lsmod Bye, Jörg. -- > Definiere ‚Demokratie‘ … … eine Mehrheit beweist einer Minderheit, dass Widerstand zwecklos ist.