Re: ls -la sort order

2018-10-03 Thread Lee
On 10/3/18, Roberto C. Sánchez wrote: > On Wed, Oct 03, 2018 at 01:51:54PM -0400, Lee wrote: >> >> Sure - I can understand some people wanting A a to sort together. But >> ignoring non-alpha characters when sorting??? Eventually I'm sure I >> can get used to >> Music >> old >> Pictures >>

Re: ls -la sort order

2018-10-03 Thread Roberto C . Sánchez
On Wed, Oct 03, 2018 at 01:51:54PM -0400, Lee wrote: > > Sure - I can understand some people wanting A a to sort together. But > ignoring non-alpha characters when sorting??? Eventually I'm sure I > can get used to > Music > old > Pictures > > but this order is obnoxious > .mozilla >

Re: ls -la sort order

2018-10-03 Thread Greg Wooledge
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 t

Re: ls -la sort order

2018-10-03 Thread Lee
On 10/3/18, Roberto C. Sánchez wrote: > 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

Re: ls -la sort order

2018-10-03 Thread Roberto C . Sánchez
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 prece

Re: ls -la sort order

2018-10-03 Thread Greg Wooledge
On Wed, Oct 03, 2018 at 12:31:01PM -0400, Lee wrote: > I'm guessing no since I don't know how to create a filename with a > non-ascii character :) This may/may not apply to you, but someone reading the archives may be interested: In X, you can type characters that are a superset of what's on your

Re: ls -la sort order

2018-10-03 Thread Lee
On 10/3/18, Greg Wooledge 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 .

Re: ls -la sort order

2018-10-03 Thread Greg Wooledge
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

ls -la sort order

2018-10-03 Thread Lee
I really don't like that 'ls -la' seems to ignore a leading dot when sorting files for display - eg. in terminal I'll get old Pictures .profile Public I haven't changed any settings yet; I've still got LANG=en_US.utf8 I can fix the problem by aliasing ls to 'LC_COLLATE=C ls' but that see