Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #200875
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: ls -la sort order |
| Date | 2018-10-03 18:50 +0200 |
| Message-ID | <wESvv-2Gf-11@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> |
| Organization | linux.* mail to news gateway |
On Wed, Oct 03, 2018 at 12:31:01PM -0400, Lee wrote: > > interesting... I get different results for 'ls [D-M]*' if LC_COLLATE=C > or LC_COLLATE=en_US.utf8 > Think of it this way: en_US.utf8 -> sort in alphabetical order C -> sort in ASCII-betical order In ASCII, all of the capital letters precede all of the lowercase letters. In US English, there is not a sorting distinction between a capital and its matching lowercase, so they are considered equivalent. Said another way, in ASCII 'A' != 'a', but en_US.utf8 'A' == 'a' (and probably in every locale that uses Latin-1 as a base). Regards, -Roberto -- Roberto C. Sánchez
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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