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

 
 

You are not allowed to post comments on this tracker with your current authentification 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: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bob Proulx <rwp>
Open/Closed: Closed

(Jump to the original submission 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
  • -unavailable- added by rwp (Posted a comment)
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by barrett9h (Posted a comment)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Oct 2013 06:19:40 PM UTCrwpStatusNone=>Fixed
      Assigned toNone=>rwp
      Open/ClosedOpen=>Closed
    Sat 25 Aug 2007 01:41:56 AM UTCbarrett9hCarbon-Copy-=>Added barrett9h
    Mon 25 Jun 2007 07:10:50 PM UTCgregmartynCarbon-Copy-=>Added gregmartyn

    Back to the top


    Powered by Savane 3.1-cleanup