zsh-users
 help / color / mirror / code / Atom feed
From: Jonathan Hankins <jonathan-hankins@mindspring.com>
To: zsh-users@sunsite.dk
Subject: Re: Glob sort specifier ideas
Date: Tue, 27 Dec 2005 22:44:01 -0600	[thread overview]
Message-ID: <873bkdaktq.fsf@shazam.localnet> (raw)
In-Reply-To: <87k6dpj2lj.fsf@shazam.localnet> (Jonathan Hankins's message of "Tue, 27 Dec 2005 21:57:12 -0600")

Cold medicine killing brain...

Jonathan Hankins <jonathan-hankins@mindspring.com> 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@mindspring.com |
+------------------+-----------------------------------------------------+


      reply	other threads:[~2005-12-28  4:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-28  3:57 Jonathan Hankins
2005-12-28  4:44 ` Jonathan Hankins [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873bkdaktq.fsf@shazam.localnet \
    --to=jonathan-hankins@mindspring.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).