Re: ls sort order: new, bad, behaviour
Eric d'Alibut <eric.halibut@gmail.com>:
> On 9/23/07, Ron Johnson <ron.l.johnson@cox.net> wrote:
>
> > > namely, an 'ls' that sorts directories first, and
> > > ordinary files afterwards? Do others actually see that behaviour in
> > > terminals?
>
> > Sure. That's how it works for me.
Not for me. I get all dotfiles and dotdirs alphabetically, followed
by non-dotdirs. It's .(A-Z then a-z):
-rw------- 1 keeling keeling 199 2007-07-12 14:30 .Xauthority
-rwxr-xr-x 1 keeling keeling 643 2007-09-05 20:36 .Xclients*
-rw-r--r-- 1 keeling keeling 28 2007-06-10 06:53 .Xmodmap
-rw-r--r-- 1 keeling keeling 11475 2007-09-15 12:59 .Xresources
-rw-r--r-- 1 keeling keeling 1045 2007-09-23 10:54 .abcde.conf
-rw-r--r-- 1 keeling keeling 3943 2007-09-10 20:16 .alias
drwx------ 2 keeling keeling 4096 2007-09-23 10:54 .aptitude/
-rw------- 1 keeling keeling 10032 2007-09-23 14:34 .bash_history
-rw-r--r-- 1 keeling keeling 158 2007-06-10 11:01 .bash_logout
-rw-r--r-- 1 keeling keeling 1158 2007-06-14 12:44 .bashrc
drwx------ 2 keeling keeling 4096 2007-09-01 00:15 .bogofilter/
-rw------- 1 keeling keeling 210 2007-06-23 08:36 .cvspass
drwx------ 3 keeling keeling 4096 2007-08-05 16:14 .dbus/
-rw-r--r-- 1 keeling keeling 9919 2007-07-10 16:47 .emacs
...
-rw-r--r-- 1 keeling keeling 11624 2007-06-23 15:00 .xscreensaver
-rw------- 1 keeling keeling 0 2007-06-23 18:37 .xsession-errors
drwxr-x--- 3 keeling keeling 4096 2007-09-23 14:54 Mail/
drwxr-xr-x 5 keeling keeling 4096 2007-09-23 15:01 News/
drwxr-xr-x 2 keeling keeling 4096 2007-08-07 09:30 Xprintjobs/
...
drwxr-xr-x 2 keeling keeling 4096 2007-09-15 09:45 sh/
drwxr-xr-x 2 keeling keeling 4096 2007-06-10 07:13 snd/
drwxr-xr-x 4 keeling keeling 4096 2007-09-23 10:54 tmp/
drwxr-xr-x 2 keeling keeling 4096 2007-09-02 07:55 winfonts/
> > $ locale
> > LANG=
> > LANGUAGE=en_US:en_GB:en
>
> I have those values in place, partly as a result of doing 'export
> LANGUAGE=en_US:en_GB:en', and I now have 'locale' output identical to
> yours, but not the wanted 'dirs-first' behaviouir:
Nor do I.
(0) heretic /home/keeling_ echo $LC_COLLATE
C
>
> If I may make so bold as to speak for others too, I hate this locale
> stuff that has descended on us since etch came into the world. Is
> there a nice dummy-friendly Debian Locale How-To? How, for instance,
> did you *set* those locale values shown in your post?
Well, there's dpkg-reconfigure locales. Then you just choose to use
them. Most take their cue from what locale says, while some apps can
be extended, ie. mutt uses magic like:
set send_charset="us-ascii:iso-8859-1:iso-8859-15:utf-8"
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Reply to:
- References:
- ls sort order: new, bad, behaviour
- From: "Eric d'Alibut" <eric.halibut@gmail.com>
- Re: ls sort order: new, bad, behaviour
- From: Benjamin A'Lee <bma+lists@subvert.org.uk>
- Re: ls sort order: new, bad, behaviour
- From: "Eric d'Alibut" <eric.halibut@gmail.com>
- Re: ls sort order: new, bad, behaviour
- From: Ron Johnson <ron.l.johnson@cox.net>
- Re: ls sort order: new, bad, behaviour
- From: "Eric d'Alibut" <eric.halibut@gmail.com>