On 10/3/18, Greg Wooledge <wool...@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