From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Feature request: two level sorting
Date: Sat, 2 Jul 2016 10:18:26 -0700 [thread overview]
Message-ID: <160702101826.ZM12978@torch.brasslantern.com> (raw)
In-Reply-To: <CAKc7PVCcY0Y8u1fV3Own9q1vsSiNmeYRi3AK-rfgn+Pohbh7jQ@mail.gmail.com>
On Jul 2, 6:09am, Sebastian Gniazdowski wrote:
}
} Good that I can get away with the problem by using capital letters,
} which aren't originally used in the data.
If you can find a character not in your data that collates after 'z',
you can do something like this:
setopt extendedglob
LC_COLLATE=C
c='~'
a=( "aaa" "aeg" "aa1" "ae2" )
x=( ${a//<->(#m)/$c$MATCH} )
print ${${(o)$x}//$c}
next prev parent reply other threads:[~2016-07-02 17:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 5:13 Sebastian Gniazdowski
2016-06-15 5:21 ` Sebastian Gniazdowski
2016-06-15 6:10 ` Sebastian Gniazdowski
2016-06-15 17:12 ` Bart Schaefer
2016-06-15 18:25 ` Mikael Magnusson
2016-06-15 22:38 ` Bart Schaefer
2016-06-15 23:02 ` Mikael Magnusson
2016-06-16 15:43 ` Bart Schaefer
2016-07-01 7:16 ` Sebastian Gniazdowski
2016-07-01 16:43 ` Bart Schaefer
2016-07-02 4:09 ` Sebastian Gniazdowski
2016-07-02 17:18 ` Bart Schaefer [this message]
2016-06-16 4:53 ` Sebastian Gniazdowski
2016-06-16 7:21 ` Bart Schaefer
2016-06-18 10:56 ` Sebastian Gniazdowski
2016-06-19 17:42 ` 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=160702101826.ZM12978@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/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).