[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ls sort order: new, bad, behaviour

On Sat, Sep 22, 2007 at 06:53:57PM -0400, Eric d'Alibut wrote:
> Last night I installed, and then removed, the ftpd and proftpd debs,
> in that order. Now I cannot by hook or crook get 'ls' to behave as it
> did before those ftp experiments. 'ls' now sorts strictly by filename
> -- including directories -- so that the latter are "mixed in" with
> regular files in the output of 'ls'.
> The last time I ran into this putting 'export LC_COLLATE=C' in .bashrc
> remedied the unwanted behaviour. No such luck this time.

Do 'printenv | grep LC_COLLATE' or 'locale' show the right setting?

> I notice in proftpd's postinst script a 'ListOption' configuration
> variable was set. Did this somehow get lodged somewhere in a system
> file such that even with the purge of proftpd it is still active?

I shouldn't think so, but it's not impossible (I can't see why it would
change system settings, but it could have done).

Benjamin A'Lee <bma@subvert.org.uk>
"Now, now, dear man, this is not the time to be making enemies." -
Voltaire, on his deathbed, when a priest asked him to "renounce Satan"

Attachment: signature.asc
Description: Digital signature

Reply to: