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


Groups > linux.debian.user > #200873

Re: ls -la sort order

From Lee <ler762@gmail.com>
Newsgroups linux.debian.user
Subject Re: ls -la sort order
Date 2018-10-03 18:40 +0200
Message-ID <wESlP-2D1-1@gated-at.bofh.it> (permalink)
References <wEQWK-1Vn-9@gated-at.bofh.it> <wER6p-1Ys-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/3/18, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> On Wed, Oct 03, 2018 at 11:07:04AM -0400, Lee wrote:
>> I can fix the problem by aliasing ls to 'LC_COLLATE=C  ls' but that
>> seems klunky and would only fix ls (and not break anything else).  How
>> bad of an idea would it be to set
>>   LC_COLLATE=C
>> in my .bashrc or is there some other setting to get dot files listed
>> first, then uppercase, then lowercase?
>
> This will affect ls, and also the expansion of globs.

interesting... I get different results for 'ls [D-M]*' if LC_COLLATE=C
or LC_COLLATE=en_US.utf8

>  It's totally fine,
> assuming this is what you want, and assuming you don't have a lot of
> files with non-ASCII characters in their names.

I'm guessing no since I don't know how to create a filename with a
non-ascii character :)

>  This is exactly what locale settings are for.

cool.. Thank you
Lee

Back to linux.debian.user | Previous | Next — Previous in thread | Next 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