Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
extra arguments inserted by glob thinger e:: get sorted afterwards
- X-seq: zsh-workers 27666
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: extra arguments inserted by glob thinger e:: get sorted afterwards
- Date: Fri, 5 Feb 2010 16:15:17 +0100
- 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=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author