Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #200879

Re: ls -la sort order

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: ls -la sort order
Date 2018-10-03 20:10 +0200
Message-ID <wETKV-3zv-7@gated-at.bofh.it> (permalink)
References <wEQWK-1Vn-9@gated-at.bofh.it> <wER6p-1Ys-7@gated-at.bofh.it> <wESlP-2D1-1@gated-at.bofh.it> <wESvv-2Gf-11@gated-at.bofh.it> <wETBg-3h4-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Oct 03, 2018 at 01:51:54PM -0400, Lee wrote:
> I don't think I'll ever get used to that.  I'm just a bit concerned
> that setting LC_COLLATE=C is going to break something & I'll have a
> heck of a time figuring out it was because I changed the sort order.

As a user, it's your prerogative to set your locale variables however
you like.  Setting one of them to C is *always* permitted.

All that matters is what you prefer.

wooledg:~$ printf %s\\n o O oh Ohio ô Ô ó Ó | LC_COLLATE=C sort
O
Ohio
o
oh
Ó
Ô
ó
ô
wooledg:~$ printf %s\\n o O oh Ohio ô Ô ó Ó | LC_COLLATE=en_US.utf8 sort
o
O
ó
Ó
ô
Ô
oh
Ohio

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

ls -la sort order Lee <ler762@gmail.com> - 2018-10-03 17:10 +0200
  Re: ls -la sort order Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-03 17:20 +0200
    Re: ls -la sort order Lee <ler762@gmail.com> - 2018-10-03 18:40 +0200
      Re: ls -la sort order Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-03 18:40 +0200
      Re: ls -la sort order Roberto C. Sánchez <roberto@debian.org> - 2018-10-03 18:50 +0200
        Re: ls -la sort order Lee <ler762@gmail.com> - 2018-10-03 20:00 +0200
          Re: ls -la sort order Roberto C. Sánchez <roberto@debian.org> - 2018-10-03 20:10 +0200
            Re: ls -la sort order Lee <ler762@gmail.com> - 2018-10-03 21:00 +0200
          Re: ls -la sort order Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-03 20:10 +0200

csiph-web