Re: ls sort order: new, bad, behaviour

2007-09-27 Thread Michelle Konzack
Am 2007-09-24 02:44:13, schrieb Eric d'Alibut: > On 9/24/07, Ron Johnson <[EMAIL PROTECTED]> wrote: > > > Jeez, this has been a bad computer day for me. > > > ls listings are just like Steve's. > > I'm back to my figment of the imagination idea: this phantom > dirs-first ls listing is a delusion

Re: ls sort order: new, bad, behaviour

2007-09-23 Thread Eric d'Alibut
On 9/24/07, Ron Johnson <[EMAIL PROTECTED]> wrote: > Jeez, this has been a bad computer day for me. > ls listings are just like Steve's. I'm back to my figment of the imagination idea: this phantom dirs-first ls listing is a delusion produced by too much mc use. -- No no no, my fish's name is

Re: ls sort order: new, bad, behaviour

2007-09-23 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/23/07 16:11, s. keeling wrote: > Eric d'Alibut <[EMAIL PROTECTED]>: >> On 9/23/07, Ron Johnson <[EMAIL PROTECTED]> wrote: >> namely, an 'ls' that sorts directories first, and ordinary files afterwards? Do others actually see that behav

Re: ls sort order: new, bad, behaviour

2007-09-23 Thread s. keeling
Eric d'Alibut <[EMAIL PROTECTED]>: > On 9/23/07, Ron Johnson <[EMAIL PROTECTED]> 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 ge

Re: ls sort order: new, bad, behaviour

2007-09-23 Thread Mumia W..
On 09/23/2007 03:05 PM, Eric d'Alibut wrote: [...] Do you have LS_OPTIONS set, or 'ls' aliased? I apologize for suggesting that aliasing ls to 'ls -X' would give the behavior you want; it does not (but it comes close). I've never seen ls sort directory names

Re: ls sort order: new, bad, behaviour

2007-09-23 Thread Eric d'Alibut
On 9/23/07, Ron Johnson <[EMAIL PROTECTED]> 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. > $ locale > LANG= > LANGUAGE=en_US:en_GB:en > LC_CTYPE="POSIX" > L

Re: ls sort order: new, bad, behaviour

2007-09-23 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/23/07 00:49, Eric d'Alibut wrote: > On 9/22/07, Benjamin A'Lee <[EMAIL PROTECTED]> wrote: > >> Do 'printenv | grep LC_COLLATE' or 'locale' show the right setting? > > I am beginning to think I am a victim of my addled pate. Have I been > using

Re: ls sort order: new, bad, behaviour

2007-09-22 Thread Eric d'Alibut
On 9/22/07, Benjamin A'Lee <[EMAIL PROTECTED]> wrote: > Do 'printenv | grep LC_COLLATE' or 'locale' show the right setting? I am beginning to think I am a victim of my addled pate. Have I been using midnight commander too much? Am I looking for a fig newton of my imagination, namely, an 'ls' that

Re: ls sort order: new, bad, behaviour

2007-09-22 Thread Mumia W..
On 09/22/2007 05:53 PM, 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 lat

Re: ls sort order: new, bad, behaviour

2007-09-22 Thread s. keeling
Eric d'Alibut <[EMAIL PROTECTED]>: > Last night I installed, and then removed, the ftpd and proftpd debs, Glad I don't use 'em. > 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 direct

Re: ls sort order: new, bad, behaviour

2007-09-22 Thread Benjamin A'Lee
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 direct

ls sort order: new, bad, behaviour

2007-09-22 Thread Eric d'Alibut
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 ou

Re: ls sort order again

2006-10-17 Thread Larry Irwin
The environment variables LANG and LC_COLLATE control sort order and regex pattern matching expansion. See files: /etc/environment and possibly /etc/profile (if edited...) LC_COLLATE is set via LANG (or LANGUAGE) unless overridden via the shell. Use the command "locale" to see the current values.

Re: ls sort order again

2006-10-17 Thread T
On Mon, 16 Oct 2006 21:11:12 -0500, cothrige wrote: > * Ben Breslauer ([EMAIL PROTECTED]) wrote: >> T wrote: >> >Hi >> > >> >I am using Debian testing, I read that the ls is able to sort >> >alphabetically, but mixes uppercase and lowercase together i.e. 'Pearl' >> >comes before 'pearl' but after

Re: ls sort order again

2006-10-17 Thread cothrige
* Ben Breslauer ([EMAIL PROTECTED]) wrote: > T wrote: > >Hi > > > >I am using Debian testing, I read that the ls is able to sort > >alphabetically, but mixes uppercase and lowercase together i.e. 'Pearl' > >comes before 'pearl' but after 'otter'. > > > >otter > >Pearl > >pearl > > > >I want that be

Re: ls sort order again

2006-10-16 Thread Vincent Lefevre
On 2006-10-17 06:11:59 +0400, Rad wrote: > I think there're unicode. This is not directly related to Unicode (this also happens with ISO8859-1), but to a language. > Try this: > > export LC_COLLATE=C and this will also fix the hyphen-minus problem: vin:~> printf '%s\n' 1-2 1-3 12 13 | LC_COLLA

Re: ls sort order again

2006-10-16 Thread Rad
I think there're unicode. Try this: export LC_COLLATE=C

Re: ls sort order again

2006-10-16 Thread Ben Breslauer
T wrote: Hi I am using Debian testing, I read that the ls is able to sort alphabetically, but mixes uppercase and lowercase together i.e. 'Pearl' comes before 'pearl' but after 'otter'. otter Pearl pearl I want that behavior. How can I do that, instead of the traditional order? I'm using tes

ls sort order again

2006-10-16 Thread T
Hi I am using Debian testing, I read that the ls is able to sort alphabetically, but mixes uppercase and lowercase together i.e. 'Pearl' comes before 'pearl' but after 'otter'. otter Pearl pearl I want that behavior. How can I do that, instead of the traditional order? thanks -- Tong (remove

Re: ls sort order

2006-09-15 Thread Marc Shapiro
Eric d'Alibut wrote: On 9/14/06, Derek Martin <[EMAIL PROTECTED]> wrote: > Is this some utf-8 mutation? Yup. If you want the old behavior, use this: export LC_COLLATE=C Bingo. Thank you sir! Thank You! I could deal with the case-insensitive sort, but what really annoyed me was hidden

Re: ls sort order

2006-09-14 Thread Eric d'Alibut
On 9/14/06, Derek Martin <[EMAIL PROTECTED]> wrote: > Is this some utf-8 mutation? Yup. If you want the old behavior, use this: export LC_COLLATE=C Bingo. Thank you sir! -- No no no, my fish's name is Eric, Eric the fish. He's an halibut. I am not a looney! Why should I be tarred with the

Re: ls sort order

2006-09-14 Thread Derek Martin
On Thu, Sep 14, 2006 at 01:01:25PM -0400, Eric d'Alibut wrote: > I just noticed on a brand new install of testing that ls has begun to > sort alphabetically, but mixes uppercase and lowercase together i.e. > 'Pearl' comes before 'pearl' but after 'otter'. [...] > A stable Debian version I maintain

ls sort order

2006-09-14 Thread Eric d'Alibut
I just noticed on a brand new install of testing that ls has begun to sort alphabetically, but mixes uppercase and lowercase together i.e. 'Pearl' comes before 'pearl' but after 'otter'. otter Pearl pearl A stable Debian version I maintain behaves the good old-fashioned way: Pearl otter pearl

Re: ls sort

2001-10-17 Thread Romuald DELAVERGNE
> > What about "ls -d */" ? > ls -d .*/ */for hidden directories

Re: ls sort

2001-10-16 Thread Serafim Zanikolas
Hello fellows, On Mon, Oct 15, 2001 at 10:06:50PM +, andrej hocevar wrote: > hi jesper, ... > written. my beginner's try was simply "ls | grep "/"" which gives > the right result. but how do i make it print the result in columns? What about "ls -d */" ? > > andrej Cheers, -- Serafim Zani

Re: ls sort

2001-10-15 Thread dman
[ I missed the original, but here's some comments anyways ] | On Sun, Oct 14, 2001 at 12:58:56PM +0200, Jesper Holmberg wrote: | > * On Sun Oct 14, Daniel Jones wrote: | > > | > > I'm going to feel silly if this is as easy as it seems like | > > it should be but after poring over the man pages I

Re: ls sort

2001-10-15 Thread andrej hocevar
hi jesper, your reply -- and even more the question you were replying to -- made me curious. i wanted to try it out. even though your command works i wanted to define it myself from scratch -- because it's a good way to learn and second because i don't understand all you've written. my beginner's t

Re: ls sort

2001-10-14 Thread Jesper Holmberg
Hi Daniel, I don't think this is possible with the the ls options. I use a function specified in my /etc/profile: ll () { ls -l --color=always "$@"|grep ^d |cat ls -l --color=always "$@"|egrep -v "^d|total\ [0-9]" |cat } This works like ls -l, but first gives directories, then other files.

ls sort

2001-10-14 Thread Daniel Jones
I'm going to feel silly if this is as easy as it seems like it should be but after poring over the man pages I can't figure it out. Is it possible to have "ls" display contents with directories listed first, sorted alphabetically, then all other files, also sorted alphabetically? None of the sort