Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Modify sort ordering for `ls`
- X-seq: zsh-workers 41572
- From: Daniel Li <dan@xxxxxxxxxx>
- To: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- Subject: Re: Modify sort ordering for `ls`
- Date: Fri, 18 Aug 2017 15:24:24 -0700
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tubitv-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uUUlsCNQASFKPDH+8NCO+/QAeNGF7G6N/2VB8lDXF7g=; b=CL4k3HIcZ7wgolTpJDVkQ4KIK7vZvTPLhtBX6q/3XjZvpIooCOiSY+c24UyO/Dxihj 9n0dsUgnsi7JBH+grjg6zgluvQaTVGO3lorBzxfKx9C7/zuZRBCcv2sJWEMcjiqQqfxu Aq4NYmc2OB50UhmIpGLZFmjmzt8i4nE1rt+qGDRmkuBZjIT8azuT7DprdToaPBTSkBZB F2T4wvUv2vnq8mu35+OQhAmjaomYTBdCtSbGxLiLHqyrTWTjSafDEYpdbm96KpZH0FTu r9hWZzp+Ax+GiLAJULJWeHzR23+4l4GT0vzq1mEYO9dE16BfMXvAnqxjlKnpC2EakKp1 VMjw==
- In-reply-to: <20170818204435.GA38284@tower.spodhuis.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAN_nDg6OHXswqwes9zgFsMPPXecXNSeqM77D4fOsPG1FesgE=g@mail.gmail.com> <20170818204435.GA38284@tower.spodhuis.org>
That's just what I'm looking for. Thanks!
Daniel Li
*Daniel Li*
Senior Backend Engineer at Tubi TV
560 Mission St, Suite 1301
San Francisco, CA 94105
On Fri, Aug 18, 2017 at 1:44 PM, Phil Pennock <
zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> On 2017-08-18 at 13:32 -0700, Daniel Li wrote:
> > Whereas on Ubuntu, ls -l gives the reverse:
> >
> > -rw-rw-r-- 1 ubuntu ubuntu 0 Aug 18 13:22 VeryLongFileNameHelper.scala
> > -rw-rw-r-- 1 ubuntu ubuntu 0 Aug 18 13:22 VeryLongFileName.scala
>
> export LC_COLLATE=POSIX
>
> 1. The default sort ordering is driven by locale.
> 2. Zsh can do things about results of stuff driven by zsh, including
> glob expansion.
> 3. The above is not using zsh glob expansion.
> 4. How ls(1) works should be documented in its man-page and other than
> via the environment, Zsh can't do anything here. There's no
> environment variables _we_ can add to _your_ system ls.
>
> Ultimately, if you can't find a locale collation which works for your
> purposes, you can dive deep and write your own collation specification.
> If your OS allows use of private locale definitions, then these should
> work in _all_ locale-aware applications, not just ls(1).
>
> http://pubs.opengroup.org/onlinepubs/009696699/utilities/localedef.html
> http://pubs.opengroup.org/onlinepubs/009696699/basedefs/xbd_chap07.html
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author