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

Re: Glob sort specifier ideas



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