From: Marlon Richert <marlon.richert@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Not-quite-alphabetic sorting: bug in Zsh or in Ubuntu?
Date: Fri, 27 Aug 2021 17:49:02 +0300 [thread overview]
Message-ID: <CAHLkEDuO+WV7wVT8rOcg3OoCQyWz_BewZXKV1vnuH7FGr6RCCQ@mail.gmail.com> (raw)
% exec -c zsh -fc "HOME=$PWD SHELL=$SHELL TERM=$TERM PS1='%# ' exec Src/zsh -f"
% autoload compinit
% compinit
% zstyle '*' extra-verbose yes
% less<TAB>
less -- opposite of more
lessecho -- expand metacharacters
lessfile -- "input preprocessor" for less.
lesskey -- specify key bindings for less
lesspipe -- "input preprocessor" for less.
% LANG=en_US.UTF-8
% less<TAB>
lessecho -- expand metacharacters
lessfile -- "input preprocessor" for less.
lesskey -- specify key bindings for less
less -- opposite of more
lesspipe -- "input preprocessor" for less.
Without `$LANG`, the output is correctly sorted, but with
`LANG=en_US.UTF-8`, `less` somehow ends up in the wrong spot.
The problem occurs for me on Ubuntu, but not on macOS. Ergo, I suppose
this is a bug on the OS level?
On the other hand, it appears to affect only completion sorting:
% LANG=en_US.UTF-8
% touch lessecho lessfile lesskey lesspipe less
% print -l less*
less
lessecho
lessfile
lesskey
lesspipe
% rm less*
% tmp=( lessecho lessfile lesskey lesspipe less )
% print ${(o)tmp}
less lessecho lessfile lesskey lesspipe
%
These are all sorted just fine.
next reply other threads:[~2021-08-27 14:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-27 14:49 Marlon Richert [this message]
2021-08-27 22:33 ` Bart Schaefer
2021-08-30 10:50 ` Marlon Richert
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=CAHLkEDuO+WV7wVT8rOcg3OoCQyWz_BewZXKV1vnuH7FGr6RCCQ@mail.gmail.com \
--to=marlon.richert@gmail.com \
--cc=zsh-workers@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).