bugGNU Core Utilities - Bugs: bug #1212, wishlist: ls sort case insensitive...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1212: wishlist: ls sort case insensitive option

Submitted by:  Bob Proulx <rwp>
Submitted on:  Sat 14 Sep 2002 07:23:35 PM UTC  
Votes:  101  
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Bob Proulx <rwp>
Open/Closed:  Closed

( Jump to the original submission)

Mon 07 Oct 2013 06:19:40 PM UTC, comment #6:

This bug in the savannah tracker has already been addressed but was here forgotten since the move to the debbugs tracker. Closing it out now as housecleaning.

Bob Proulx <rwp>
Project AdministratorIn charge of this item.
Sat 25 Aug 2007 03:23:56 AM UTC, comment #5:

There are three environment variables that control how ls sorts:
LANG (default for all categories, if unset, a platform default is used)
LC_COLLATE (particular locale for collation [ie sorting] rules)
LC_ALL (override for all categories)

If you want UTF8 for everything except sorting, then set LANG to en_US.UTF-8, and LC_COLLATE to C, and leave LC_ALL unset.

This is a FAQ:
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-ls-command-is-not-listing-files-in-a-normal-order_0021

Eric Blake <ericb>
Project Administrator
Sat 25 Aug 2007 01:27:09 AM UTC, comment #4:

I found out that unsetting LANG fixes the case sensitivity (README is supposed to came before main.c, dammit!), but will it be missing UTF capability without the LANG=en_US.UTF-8 that was default in my distro?

Rodolfo Borges <barrett9h>
Wed 11 Oct 2006 05:09:03 AM UTC, comment #3:

In a later note (that I cannot find in the archive) David T-G pointed out that case insensitivity can be triggered by specifying the proper locale. This is true but does require that a proper locale be installed and selected.

After all of this time if this has not been requested more then I don't know how important it is to actually implement. ls has so many options already. But at the time it seemed like a good enough idea that I did transfer it to a wishlist in the tracker.

Bob Proulx <rwp>
Project AdministratorIn charge of this item.
Wed 11 Oct 2006 04:59:39 AM UTC, comment #2:

I guess I shouldn't have relied upon web links, even if into the gnu.org archive, and should have simply copied in the message. It seems to have completely dissappeared from the archive. But I think this is the message being referred to. --Bob

From: Bastian Fuchs
To: bug-fileutils at gnu org
Subject: case insensitivity (rather a wish than a bug)
Date: Sun, 8 Sep 2002 01:44:59 +0200

Hello,
it would be nice, if there is an option to sort alphabetically WITHOUT
consideration of upper oder lower case.

This is the standard output of ls -l:
-rw-r--r-- 1 bastiaf users 0 Sep 8 01:36 FIRST_EXAMPLE
-rw-r--r-- 1 bastiaf users 0 Sep 8 01:36 SECOND_EXAMPLE
-rw-r--r-- 1 bastiaf users 0 Sep 8 01:36 first_example
-rw-r--r-- 1 bastiaf users 0 Sep 8 01:36 second_example

It would be nice, if ls -l --sort=caseinsensitivity for example would show:
-rw-r--r-- 1 bastiaf users 0 Sep 8 01:36 FIRST_EXAMPLE
-rw-r--r-- 1 bastiaf users 0 Sep 8 01:36 first_example
-rw-r--r-- 1 bastiaf users 0 Sep 8 01:36 SECOND_EXAMPLE
-rw-r--r-- 1 bastiaf users 0 Sep 8 01:36 second_example

- Bastian

Bob Proulx <rwp>
Project AdministratorIn charge of this item.
Wed 20 Sep 2006 01:44:58 PM UTC, comment #1:

Hi Bob,

Can you supply details?
The Original Submission URL is no longer valid.
Or, with a little luck, the problem has already been solved :)

Thanks,
Jim

Jim Meyering <meyering>
Project Administrator
Sat 14 Sep 2002 07:23:35 PM UTC, original submission:

http://mail.gnu.org/pipermail/bug-fileutils/2002-September/002791.html

Bob Proulx <rwp>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rwp (Posted a comment)
  • -email is unavailable- added by ericb (Posted a comment)
  • -email is unavailable- added by barrett9h (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 101 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-07 rwp StatusNone => Fixed
        Assigned toNone => rwp
        Open/ClosedOpen => Closed
    2007-08-25 barrett9h Carbon-Copy- => Added barrett9h
    2007-06-25 gregmartyn Carbon-Copy- => Added gregmartyn

    Back to the top


    Powered by Savane 3.3