From unknown Sat Sep 06 01:12:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#12566 <12566@debbugs.gnu.org> To: bug#12566 <12566@debbugs.gnu.org> Subject: Status: ls case-insensitivie Reply-To: bug#12566 <12566@debbugs.gnu.org> Date: Sat, 06 Sep 2025 08:12:04 +0000 retitle 12566 ls case-insensitivie reassign 12566 coreutils submitter 12566 Michael Talbot-Wilson severity 12566 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 02:56:36 2012 Received: (at submit) by debbugs.gnu.org; 3 Oct 2012 06:56:36 +0000 Received: from localhost ([127.0.0.1]:38437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJIsk-00076D-AK for submit@debbugs.gnu.org; Wed, 03 Oct 2012 02:56:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45814) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJHra-0005UK-3y for submit@debbugs.gnu.org; Wed, 03 Oct 2012 01:51:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJHqy-0000Pw-MD for submit@debbugs.gnu.org; Wed, 03 Oct 2012 01:50:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJHqy-0000Ps-Ik for submit@debbugs.gnu.org; Wed, 03 Oct 2012 01:50:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJHqx-0002SW-Nd for bug-coreutils@gnu.org; Wed, 03 Oct 2012 01:50:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJHqs-0000Lf-Uz for bug-coreutils@gnu.org; Wed, 03 Oct 2012 01:50:39 -0400 Received: from calypso.view.net.au ([203.122.243.188]:38699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJHqs-0000As-I9 for bug-coreutils@gnu.org; Wed, 03 Oct 2012 01:50:34 -0400 Received: from localhost (localhost [127.0.0.1]) by calypso.view.net.au (Postfix) with ESMTP id D47EC152EB for ; Wed, 3 Oct 2012 15:20:27 +0930 (CST) X-Virus-Scanned: amavisd-new at view.net.au Received: from calypso.view.net.au ([127.0.0.1]) by localhost (calypso.view.net.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IwNkIK+M1Gzp for ; Wed, 3 Oct 2012 15:20:01 +0930 (CST) Received: by calypso.view.net.au (Postfix, from userid 1000) id 76A4A152C9; Wed, 3 Oct 2012 15:20:01 +0930 (CST) Received: from localhost (localhost [127.0.0.1]) by calypso.view.net.au (Postfix) with ESMTP id 74F5A152C8 for ; Wed, 3 Oct 2012 15:20:01 +0930 (CST) Date: Wed, 3 Oct 2012 15:20:01 +0930 (CST) From: Michael Talbot-Wilson To: bug-coreutils@gnu.org Subject: ls case-insensitivie Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 03 Oct 2012 02:56:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) $ ls -lFGgd [G-G]* drwxr-xr-x 4 4096 Apr 8 13:13 GC/ $ ls -lFGgd [F-G]* drwxr-xr-x 4 4096 Apr 8 13:13 GC/ drwxr-xr-x 16 4096 Jun 11 15:43 gtk+-2.24.4/ $ ls --version ls (GNU coreutils) 8.9 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ cat /proc/version Linux version 2.6.29.6-smp (root@midas) (gcc version 4.3.3 (GCC) ) #2 SMP Mon Aug 17 00:52:54 CDT 2009 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 04:20:23 2012 Received: (at 12566) by debbugs.gnu.org; 3 Oct 2012 08:20:24 +0000 Received: from localhost ([127.0.0.1]:38525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJKBq-0000ao-Sc for submit@debbugs.gnu.org; Wed, 03 Oct 2012 04:20:23 -0400 Received: from joseki.proulx.com ([216.17.153.58]:43885) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJKBo-0000ag-Rv for 12566@debbugs.gnu.org; Wed, 03 Oct 2012 04:20:21 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 8B5F5211DF; Wed, 3 Oct 2012 02:19:41 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 42CB02DC77; Wed, 3 Oct 2012 02:19:41 -0600 (MDT) Date: Wed, 3 Oct 2012 02:19:41 -0600 From: Bob Proulx To: Michael Talbot-Wilson Subject: Re: bug#12566: ls case-insensitivie Message-ID: <20121003081941.GB12124@hysteria.proulx.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 12566 Cc: 12566@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) Michael Talbot-Wilson wrote: > $ ls -lFGgd [G-G]* > drwxr-xr-x 4 4096 Apr 8 13:13 GC/ > $ ls -lFGgd [F-G]* > drwxr-xr-x 4 4096 Apr 8 13:13 GC/ > drwxr-xr-x 16 4096 Jun 11 15:43 gtk+-2.24.4/ Thanks for the report. But you are misunderstanding that it is it is shell that is expanding the file glob. The ls command has nothing to do with that part of things. You can verify this by using the echo command to echo the line. $ echo ls -lFGgd [G-G]* GC $ echo ls -lFGgd [F-G]* GC gtk+-2.24.4 Since the shell is expanding the file glob and handing the result to ls the ls command isn't responsible. However what you are seeing is not a bug in the shell either. This behavior changed when en_US and other natural language locales were introduced with "dictionary" collating sequences. In those case is folded and punctuation is ignored. See this reference: http://www.faqs.org/docs/bashman/bashref_35.html Many of us who do not like this set the following to use a C collating sequence. For me: export LANG=en_US.UTF-8 export LC_COLLATE=C The shell will need to be restarted with those variables in force. Bob From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 07:26:41 2012 Received: (at 12566) by debbugs.gnu.org; 3 Oct 2012 11:26:41 +0000 Received: from localhost ([127.0.0.1]:38779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJN68-0004ta-LY for submit@debbugs.gnu.org; Wed, 03 Oct 2012 07:26:41 -0400 Received: from calypso.view.net.au ([203.122.243.188]:49188) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJN65-0004tO-7s for 12566@debbugs.gnu.org; Wed, 03 Oct 2012 07:26:39 -0400 Received: from localhost (localhost [127.0.0.1]) by calypso.view.net.au (Postfix) with ESMTP id 165E2152EE; Wed, 3 Oct 2012 20:55:56 +0930 (CST) X-Virus-Scanned: amavisd-new at view.net.au Received: from calypso.view.net.au ([127.0.0.1]) by localhost (calypso.view.net.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id smThpWvvjzmh; Wed, 3 Oct 2012 20:55:32 +0930 (CST) Received: by calypso.view.net.au (Postfix, from userid 1000) id BD2F4152EF; Wed, 3 Oct 2012 20:55:32 +0930 (CST) Received: from localhost (localhost [127.0.0.1]) by calypso.view.net.au (Postfix) with ESMTP id B84B6152EE; Wed, 3 Oct 2012 20:55:32 +0930 (CST) Date: Wed, 3 Oct 2012 20:55:32 +0930 (CST) From: Michael Talbot-Wilson To: Bob Proulx Subject: Re: bug#12566: ls case-insensitivie In-Reply-To: <20121003081941.GB12124@hysteria.proulx.com> Message-ID: References: <20121003081941.GB12124@hysteria.proulx.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 12566 Cc: 12566@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) On Wed, 3 Oct 2012, Bob Proulx wrote: > Michael Talbot-Wilson wrote: >> $ ls -lFGgd [G-G]* >> drwxr-xr-x 4 4096 Apr 8 13:13 GC/ >> $ ls -lFGgd [F-G]* >> drwxr-xr-x 4 4096 Apr 8 13:13 GC/ >> drwxr-xr-x 16 4096 Jun 11 15:43 gtk+-2.24.4/ > > Thanks for the report. But you are misunderstanding that it is it is ... > export LANG=en_US.UTF-8 > export LC_COLLATE=C > > The shell will need to be restarted with those variables in force. Thanks for your quick and detailed reply to a mistaken bug report. My other mistake: $ export LC_ALL=en_AU.utf-8; export LC_COLLATE=C; locale LANG=en_AU.utf-8 LC_CTYPE="en_AU.utf-8" LC_NUMERIC="en_AU.utf-8" LC_TIME="en_AU.utf-8" LC_COLLATE="en_AU.utf-8" LC_MONETARY="en_AU.utf-8" LC_MESSAGES="en_AU.utf-8" LC_PAPER="en_AU.utf-8" LC_NAME="en_AU.utf-8" LC_ADDRESS="en_AU.utf-8" LC_TELEPHONE="en_AU.utf-8" LC_MEASUREMENT="en_AU.utf-8" LC_IDENTIFICATION="en_AU.utf-8" LC_ALL=en_AU.utf-8 $ unset LC_ALL; locale LANG=en_AU.utf-8 LC_CTYPE="en_AU.utf-8" LC_NUMERIC="en_AU.utf-8" LC_TIME="en_AU.utf-8" LC_COLLATE=C LC_MONETARY="en_AU.utf-8" LC_MESSAGES="en_AU.utf-8" LC_PAPER="en_AU.utf-8" LC_NAME="en_AU.utf-8" LC_ADDRESS="en_AU.utf-8" LC_TELEPHONE="en_AU.utf-8" LC_MEASUREMENT="en_AU.utf-8" LC_IDENTIFICATION="en_AU.utf-8" LC_ALL= Thanks again. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 11:39:26 2012 Received: (at control) by debbugs.gnu.org; 3 Oct 2012 15:39:26 +0000 Received: from localhost ([127.0.0.1]:39680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJR2k-0003DA-AF for submit@debbugs.gnu.org; Wed, 03 Oct 2012 11:39:26 -0400 Received: from joseki.proulx.com ([216.17.153.58]:46335) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJR2h-0003D2-Qu for control@debbugs.gnu.org; Wed, 03 Oct 2012 11:39:24 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 7DEEC211D6 for ; Wed, 3 Oct 2012 09:38:41 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 22E872DC77; Wed, 3 Oct 2012 09:38:41 -0600 (MDT) Date: Wed, 3 Oct 2012 09:38:41 -0600 From: Bob Proulx To: control@debbugs.gnu.org Subject: close the bug Message-ID: <20121003153840.GA4709@hysteria.proulx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) close 12566 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 11:45:15 2012 Received: (at 12566) by debbugs.gnu.org; 3 Oct 2012 15:45:15 +0000 Received: from localhost ([127.0.0.1]:39687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJR8N-0003j3-8b for submit@debbugs.gnu.org; Wed, 03 Oct 2012 11:45:15 -0400 Received: from joseki.proulx.com ([216.17.153.58]:46366) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJR8L-0003fY-8f for 12566@debbugs.gnu.org; Wed, 03 Oct 2012 11:45:13 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 636D2211D6; Wed, 3 Oct 2012 09:44:34 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 4ED6B2DC77; Wed, 3 Oct 2012 09:44:34 -0600 (MDT) Date: Wed, 3 Oct 2012 09:44:34 -0600 From: Bob Proulx To: Michael Talbot-Wilson Subject: Re: bug#12566: ls case-insensitivie Message-ID: <20121003154434.GA3519@hysteria.proulx.com> References: <20121003081941.GB12124@hysteria.proulx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 12566 Cc: 12566@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) Michael Talbot-Wilson wrote: > Thanks for your quick and detailed reply to a mistaken bug report. My > other mistake: > > $ export LC_ALL=en_AU.utf-8; export LC_COLLATE=C; locale Ah, right. LC_ALL is the highest priority control. It overrides LC_COLLATE. So in practice LC_ALL=C is useful to force 100% of everything to a standard setting. But the reverse of trying to pick and choose features such as LANG=en_AU.utf-8 LC_COLLATE=C requires LC_ALL to be unset. (Which I have mostly said for the purpose of people searching the archive because you have already determined this from your case example.) Since you are talking about bash file glob expansion let me also note this message: http://lists.gnu.org/archive/html/bug-bash/2012-05/msg00086.html It notes that future versions of bash will have an option to enable Rational Range Interpretation of [a-z] and [A-Z]. Thank you for helping to make GNU better. I have closed this bug ticket. Feel free to continue the discussion as I just did with this message. It will still reach all of the participants. Bob From unknown Sat Sep 06 01:12:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 01 Nov 2012 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator