Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: extra arguments inserted by glob thinger e:: get sorted afterwards



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.

It's the *only* way to do it.  The arguments are all assumed to be
files, which is after all the point of globbing.  Either you get them
sorted as files or you don't get them sorted.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



Messages sorted by: Reverse Date, Date, Thread, Author