Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Glob sort specifier ideas
- X-seq: zsh-users 9800
- From: Jonathan Hankins <jonathan-hankins@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Glob sort specifier ideas
- Date: Tue, 27 Dec 2005 22:44:01 -0600
- In-reply-to: <87k6dpj2lj.fsf@xxxxxxxxxxxxxxx> (Jonathan Hankins's message of "Tue, 27 Dec 2005 21:57:12 -0600")
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <87k6dpj2lj.fsf@xxxxxxxxxxxxxxx>
- Sender: Jonathan Hankins <jonathan-hankins@xxxxxxxxxxxxxx>
Cold medicine killing brain...
Jonathan Hankins <jonathan-hankins@xxxxxxxxxxxxxx> writes:
> would work like sort and the "cmp" or "<=>" operators in perl, taking
> 2 files as arguments, returning -1, 0 or 1 file1 is "less than",
> "equal to" or "greater than" file2 in the sort order.
Oops, wouldn't work for shell code -- would need to put 2 file names
into reply[1] and reply[2], similar to the usage of the reply variable
in the e:string: glob specifier.
> for x in *.arj(oe:myfunc:); do arj x base_dir $x; done
>
> Where myfunc would get called repeatedly as "myfunc file1.arj
> file2.arj"
Same thing here.
-Jonathan Hankins
--
+------------------+-----------------------------------------------------+
|Jonathan Hankins | jonathan-hankins@xxxxxxxxxxxxxx |
+------------------+-----------------------------------------------------+
Messages sorted by:
Reverse Date,
Date,
Thread,
Author