From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Reverse the order of an array?
Date: Fri, 15 Feb 2002 17:16:27 +0000 [thread overview]
Message-ID: <1020215171627.ZM24466@candle.brasslantern.com> (raw)
In-Reply-To: <20020213163650.19763.qmail@web9305.mail.yahoo.com>
On Feb 13, 4:36pm, Oliver Kiddle wrote:
}
} > How about if (oa) means "sort in array index order" and (Oa) means
} > "sort in reverse array index order"?
}
} Should we perhaps also add an argument to the `o' glob qualifier to
} specify no sorting (i.e. pure directory order). If so, it should
} perhaps be the same letter as here in which case `a' is not available.
There are already a number of inconsistencies between glob qualifiers
and parameter flags in this regard. Order matters in glob qualifiers;
e.g. (n) by itself is numeric sorting (which we don't yet do in arrays),
(no) is an error, and (on) means sort by name. In parameter flags (i)
by itself is meaningless, but both (io) and (oi) mean to sort case-
independently (an option that we don't have in the glob qualifiers).
Also, directory order is not likely to have been carefully crafted by
the user the way array ordering is. The main use of pure directory
order would be to avoid sorting when there are a large number of files.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
next prev parent reply other threads:[~2002-02-15 17:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.BSF.4.40.0202082359000.90676-100000@brasslantern.com>
[not found] ` <20020211132620.27729.qmail@web9302.mail.yahoo.com>
2002-02-12 13:15 ` Derek Peschel
2002-02-13 16:36 ` Oliver Kiddle
2002-02-15 17:16 ` Bart Schaefer [this message]
2002-02-22 9:20 ` Oliver Kiddle
2002-02-25 17:54 ` Bart Schaefer
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=1020215171627.ZM24466@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@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).