X-Loop: help-debbugs@HIDDEN Subject: bug#33123: non-backwards compatible change to ls Resent-From: Matt Martini <matt.martini@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Tue, 23 Oct 2018 03:46:02 +0000 Resent-Message-ID: <handler.33123.B.154026635117890 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 33123 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 33123 <at> debbugs.gnu.org Cc: kaxandra.labat@HIDDEN X-Debbugs-Original-To: bug-coreutils@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.154026635117890 (code B ref -1); Tue, 23 Oct 2018 03:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2018 03:45:51 +0000 Received: from localhost ([127.0.0.1]:36961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gEnde-0004eU-Pv for submit <at> debbugs.gnu.org; Mon, 22 Oct 2018 23:45:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <matt.martini@HIDDEN>) id 1gEnb4-0004Zf-HN for submit <at> debbugs.gnu.org; Mon, 22 Oct 2018 23:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <matt.martini@HIDDEN>) id 1gEnay-0000G5-EF for submit <at> debbugs.gnu.org; Mon, 22 Oct 2018 23:43:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <matt.martini@HIDDEN>) id 1gEnay-0000Fl-9l for submit <at> debbugs.gnu.org; Mon, 22 Oct 2018 23:43:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <matt.martini@HIDDEN>) id 1gEnax-0003v7-A7 for bug-coreutils@HIDDEN; Mon, 22 Oct 2018 23:43:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <matt.martini@HIDDEN>) id 1gEnat-00008I-4x for bug-coreutils@HIDDEN; Mon, 22 Oct 2018 23:43:03 -0400 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:39657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <matt.martini@HIDDEN>) id 1gEnas-00006J-KH for bug-coreutils@HIDDEN; Mon, 22 Oct 2018 23:42:58 -0400 Received: by mail-yb1-xb34.google.com with SMTP id j9-v6so247572ybj.6 for <bug-coreutils@HIDDEN>; Mon, 22 Oct 2018 20:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imaginarywave-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:cc:to; bh=HAkfy8wBZSrgKWW2VzMKN6gUfXx3IRxyOsaHBW/nA9o=; b=CTscx37LbkcQJvZWoVxtHR77mvwhx7PIqD33X/mXXXjV9P41c3YoYs2XWGQ+Z3kQ7h DJvnnQKnZyNNpRLaG/yxeTh5sRj0fT4zoQAGeuzqMkRhJ+JCZ7msoeQb23FtQ/KPvw+e bq8nwdqnbB6TWjq/KfQdtjEzgTD9bKA4SIRjLTjzNxXi8SnOFowjz3J3H6L3OZoaY7E2 34+wsUoAbN7C6VZRn7NQRNZkgIp4d/4VvKvEF9M2IpZK6JHBUlv4Ea8u8yYGNreVuaiE hsHgAAeEHkPxeIctJcCYryH75tHFsF2z3pgKhTMKGwsnO7NFCTuPLIbbZhuox6oEJCW/ Qhkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date:cc:to; bh=HAkfy8wBZSrgKWW2VzMKN6gUfXx3IRxyOsaHBW/nA9o=; b=GE64STW+A7MGYJSfvuvJc64IIKo3bvwWbXR/ZecqVhr7D9pdfxJaRZPTK2FxqNH82q 9REO8efICrqpj8raXiH7Yalqo2qtiPtjTMTlG2KXx0SyupLs0kBffk7QGVIR7vlVbM9t CMAfo4Qu0MVKX29SSeEEzQE14CUZWfSdB7CoEfOIPWe6gGMHytqaP5Wg+9DpXRDy+35q wH0K9RadDalZuSTPrCnoZFvG1Ed4+iOf4DQWhtJ6L14CKraBEmxXDWrRyf21yStqBRM6 rSCa3AUa7k3Lf21Ax5/3oJ88JYlRjLrvfi22a+Fs4xUjA+WzmYiVLfK487JGP3+i+bCJ J2DA== X-Gm-Message-State: ABuFfohiQt7UcyAgEnnQd4EcABQBZD0q25Aqm+9Ye6nlBDAA5Zryk70L udJS1ITPSUnVilDkhLsJLm+F3usV3JM= X-Google-Smtp-Source: ACcGV62Bgns3XANRL4eEWF65/kXsU6ExvvYQwpBGiAaMspL64qKNcq/Eexym1teQfrVaJUYmif6P5Q== X-Received: by 2002:a25:e043:: with SMTP id x64-v6mr18217079ybg.42.1540266177235; Mon, 22 Oct 2018 20:42:57 -0700 (PDT) Received: from [10.17.1.8] (pool-70-19-38-188.nycmny.fios.verizon.net. [70.19.38.188]) by smtp.gmail.com with ESMTPSA id z67-v6sm1528610ywe.72.2018.10.22.20.42.55 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Oct 2018 20:42:56 -0700 (PDT) From: Matt Martini <matt.martini@HIDDEN> X-Google-Original-From: Matt Martini <imaginarywave@HIDDEN> Content-Type: multipart/alternative; boundary="Apple-Mail=_92E458B0-F90A-4EC7-B472-8710B3A6E553" Message-Id: <C020852A-FC79-42A9-A388-14FA5E0B59EB@HIDDEN> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Priority: 1 Date: Mon, 22 Oct 2018 23:42:54 -0400 X-Mailer: Apple Mail (2.2104) 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.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Mon, 22 Oct 2018 23:45:49 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -6.0 (------) --Apple-Mail=_92E458B0-F90A-4EC7-B472-8710B3A6E553 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 There was a change in the behavior of ls that is unconditional (no way to revert to the old behavior) and incompatible with the previous behavior. The change is listed in the Changelog for 8.30: 2018-06-20 Kaxandra Labat <kaxandra.labat@HIDDEN> ls: ignore case when coloring file extensions * src/ls.c (get_color_indicator): s/STREQ_LEN/c_strncasecmp/ * src/dircolors.hin: Remove a now redundant entry. * tests/ls/color-ext.sh: Add a new test. * tests/local.mk: Reference the new test. * NEWS: Mention the change in behavior. This breaks the use case where different colors are assigned to suffixes whose case is different. The old behavior allowed for making visually distinct different cased suffixes. For example: image.jpg could be rendered in green image.JPG could be rendered in green with a yellow background=20 This would allow for easy identification of non-uniform cases, especially in directories with large numbers of files. What I am requesting is a way to get the old behavior back.=20 One suggestion would be adding a setting to the =E2=80=94color option, = whereby --color=3Dauto would turn on = colorization case-insensitive (as the new behavior works) --color=3Dauto-case would turn on colorization = case-sensitive (as the old behavior worked) Thank you. Matt= --Apple-Mail=_92E458B0-F90A-4EC7-B472-8710B3A6E553 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><div class=3D""><div class=3D"">There was a change in the = behavior of ls that is unconditional (no</div><div class=3D"">way to = revert to the old behavior) and incompatible with the</div><div = class=3D"">previous behavior.</div><div class=3D""><br = class=3D""></div></div><div class=3D"">The change is listed in the = Changelog for 8.30:</div><div class=3D""><br class=3D""></div><div = class=3D""><font face=3D"Courier" class=3D"">2018-06-20 Kaxandra = Labat <<a href=3D"mailto:kaxandra.labat@HIDDEN" = class=3D"">kaxandra.labat@HIDDEN</a>></font></div><div = class=3D""><div class=3D""><font face=3D"Courier" class=3D""> ls: = ignore case when coloring file extensions</font></div><div = class=3D""><font face=3D"Courier" class=3D""> * src/ls.c = (get_color_indicator): s/STREQ_LEN/c_strncasecmp/</font></div><div = class=3D""><font face=3D"Courier" class=3D""> * = src/dircolors.hin: Remove a now redundant entry.</font></div><div = class=3D""><font face=3D"Courier" class=3D""> * = tests/ls/color-ext.sh: Add a new test.</font></div><div class=3D""><font = face=3D"Courier" class=3D""> * tests/local.mk: Reference the = new test.</font></div><div class=3D""><font face=3D"Courier" = class=3D""> * NEWS: Mention the change in = behavior.</font></div></div><div class=3D""><br class=3D""></div><div = class=3D""><div class=3D"">This breaks the use case where different = colors are assigned to suffixes</div><div class=3D"">whose case is = different. The old behavior allowed for making visually</div><div = class=3D"">distinct different cased suffixes.</div></div><div = class=3D""><br class=3D""></div><div class=3D"">For example:</div><div = class=3D""><br class=3D""></div><div class=3D""> <font = face=3D"Courier" class=3D"">image.jpg</font> could be = rendered in green</div><div class=3D""> <font = face=3D"Courier" class=3D"">image.JPG</font> could be = rendered in green with a yellow background </div><div class=3D""><br = class=3D""></div><div class=3D""><div class=3D"">This would allow for = easy identification of non-uniform cases,</div><div class=3D"">especially = in directories with large numbers of files.</div><div class=3D""><br = class=3D""></div><div class=3D"">What I am requesting is a way to get = the old behavior back. </div><div class=3D""><br = class=3D""></div><div class=3D"">One suggestion would be adding a = setting to the <font face=3D"Courier" class=3D"">=E2=80=94color</font> = option, whereby</div></div><div class=3D""><br class=3D""></div><div = class=3D""> <font face=3D"Courier" = class=3D"">--color=3Dauto</font><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> </span>would = turn on colorization case-insensitive (as the new behavior = works)</div><div class=3D""> <font face=3D"Courier" = class=3D"">--color=3Dauto-case</font><span class=3D"Apple-tab-span" = style=3D"white-space: pre;"> </span>would turn on = colorization case-sensitive (as the old behavior worked)</div><div = class=3D""><br class=3D""></div><div class=3D"">Thank you.</div><div = class=3D""><br class=3D""></div><div class=3D"">Matt</div></body></html>= --Apple-Mail=_92E458B0-F90A-4EC7-B472-8710B3A6E553--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Matt Martini <matt.martini@HIDDEN> Subject: bug#33123: Acknowledgement (non-backwards compatible change to ls) Message-ID: <handler.33123.B.154026635117890.ack <at> debbugs.gnu.org> References: <C020852A-FC79-42A9-A388-14FA5E0B59EB@HIDDEN> X-Gnu-PR-Message: ack 33123 X-Gnu-PR-Package: coreutils Reply-To: 33123 <at> debbugs.gnu.org Date: Tue, 23 Oct 2018 03:46:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 33123 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 33123: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33123 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 30 Oct 2018 04:05:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 30 00:05:16 2018 Received: from localhost ([127.0.0.1]:52937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gHLHI-00046S-EY for submit <at> debbugs.gnu.org; Tue, 30 Oct 2018 00:05:16 -0400 Received: from mail-pl1-f179.google.com ([209.85.214.179]:42007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1gHLHG-00046E-5l for control <at> debbugs.gnu.org; Tue, 30 Oct 2018 00:05:14 -0400 Received: by mail-pl1-f179.google.com with SMTP id t6-v6so4835862plo.9 for <control <at> debbugs.gnu.org>; Mon, 29 Oct 2018 21:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=5UP18WAOUkJ29CkfThy+PWRCQaZIGWOwYIoY6dPzsQE=; b=G3zPE6AZrERFXw6iASV8OM5XWf+xt/Zm6bU3FUWOB+yy/ce7nnVb+4zphtEUi3OyFs DfrO1WDU9DfG6K8lv7pe3BLrS2Uh5jEmHAO1Z9fcfGSLDqSWtnkxUmbrMh0c+cb3DyNq H1R8YBhhRS3e5xgeINZuZ8794hVGysCUhREX6w+ZOFPUc7WVeZwyPZt3+rUKTBuDrLYO dRD3kMMp4gRVmoDf8lhwzmZ7BxNo7VzxRhcxPnE1KY8Q3CUJF+uCUTSirKjnNEPalhjk 6lRU7wudeMC/ZQeQBH9wmR4N+WADzoCvuxKBNUoOICTVCfgukwQaSsAliiQbrjwIFA0B q9mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=5UP18WAOUkJ29CkfThy+PWRCQaZIGWOwYIoY6dPzsQE=; b=RmcwdEgaEddgHXmYDtgAtppKCrHNvgYGNwbBTcNUIprQqKsnItwBREEXj/NWRGKErc yrkIJ/wua6uUbTHlQUn995whOhJ3CBUGhW7W0K/1Ho+B+iUKwltRbJ6A3uGHUL/p4dVq bq+1qDdAF08G7GSRNdMk9kuQ1JmPWG8gJqpnJjTz2iU0iyC1A2xMCXDgK86gYviQIr53 9Lf08fLyou8/EKJRutS3xL/uS9bO3k/1/gf7XFkdZwy37vl9TgHP8K3q9P1EUu08xPfH T44olDU6Z6z9xm2ZmAWpILlkvIrAg+xY6yLNtc9beNHaL2jAas8dgE8tj2a1rnQc+O1Z gP5g== X-Gm-Message-State: AGRZ1gKAbaQM4QFEba0Iozj+2aGPkgohriZao9vgSCOLRvf+bBx8pZLH AvNBtAvHouFXdocW/ZtRYhvBrPsarL8= X-Google-Smtp-Source: AJdET5crbLd4xPkkQ28sZ7Y+dx66PZ3z5hcYe6sgPcIzJtNFeLZWlRoSKyPTHZZGg9r4cJhtFOpeaw== X-Received: by 2002:a17:902:7408:: with SMTP id g8-v6mr16627382pll.168.1540872308106; Mon, 29 Oct 2018 21:05:08 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id d5-v6sm6431871pfo.131.2018.10.29.21.05.06 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 21:05:06 -0700 (PDT) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <394947b1-1a8d-8071-dd67-b73acee8c053@HIDDEN> Date: Mon, 29 Oct 2018 22:05:01 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 33123 ls-quotes: non-backwards compatible change to ls [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.179 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) retitle 33123 ls-quotes: non-backwards compatible change to ls
Received: (at control) by debbugs.gnu.org; 11 Jan 2019 08:43:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 03:43:38 2019 Received: from localhost ([127.0.0.1]:54497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ghsPi-0005Ft-3i for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 03:43:38 -0500 Received: from mail-io1-f52.google.com ([209.85.166.52]:37910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1ghsPf-0005Fd-Ny for control <at> debbugs.gnu.org; Fri, 11 Jan 2019 03:43:36 -0500 Received: by mail-io1-f52.google.com with SMTP id l14so11575368ioj.5 for <control <at> debbugs.gnu.org>; Fri, 11 Jan 2019 00:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=uq7A0Cy28p9uTw8pCr8jq07Fbfq/WLPd/fu86qK4744=; b=oADg1JDsqzoD+P3WX/1JXdkRLwR/N4buKSfzsjb2k4TTgkBDu/xPFH6EESiUKogltL 6/cdzBr4uyJST6zuRd3eqy4KW8j+SIsw8rvfiwmRbSVI9/Xq6/rqzTBpURpotzE7dNuu O8G32HBAQSI9YUPjx3w4MwVMH1JmXf3n5WR3rX7qUsM95edDlDPQpWPi3U8ciYU2DjyR eE0W4d0KP7Q43KNL7Y3vscuweZjsQ/8ibSukFanOMESiNgNbzAFLonLT+ZdXKBcRnvdO 5J/nvMSKGCbv73F+mHqAze3QSSlHMfg32FHAK4s4JF4t9JrcGX47DCEBmDXbZIXWJkEr YGRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=uq7A0Cy28p9uTw8pCr8jq07Fbfq/WLPd/fu86qK4744=; b=L4EkbiBBFIXvjFaPmuuIKG3x/skzc6rcvLe2ynvqrLPjX8Vkvpzn2me0PAcB0YqDPQ gGfLZ/FM0bRPcBoETs6yUl7hG0oc7YhRRRkrEVOV+uS3YJ7CdZqDkqsNophk+XiNzyi0 Oo6FhUC8sJqhPvVmb5b5q+BdDzhXYLoeQSJiHwPDMVeTMOxl885ltcQMfD9vgN89gUzI fCYv1H4hGeHU4GDKtMNeSa/TIlUa/3Xd5+gF823ad4IQj7O3dRExTI0ALCVU5gZqlcR3 CTNLlj/17NXtN4p/zdDt0oF/ae4ROQ1bE/n6TlbI2s+rmP51//dqgjWiPHsp3S0y1bUe VCZw== X-Gm-Message-State: AJcUukfmUklaAcL64sGqqr2p1KyoV1CFM6jA4L2T++tVTxgC227Mknsd ivWjZVNaoc7xm+Kv9yQ6ieXvSvPy X-Google-Smtp-Source: ALg8bN5XOPtls0hTpVHsPc+ybiWWHsEJIkPD6uR9BVsXvtZso11BkVS0x+4UekM2CklVjMwt9xnaHg== X-Received: by 2002:a5d:878d:: with SMTP id f13mr9215733ion.239.1547196209556; Fri, 11 Jan 2019 00:43:29 -0800 (PST) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id v202sm463308ita.13.2019.01.11.00.43.28 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 00:43:28 -0800 (PST) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <c35bf826-0a78-37bf-84c0-958ed4266dfe@HIDDEN> Date: Fri, 11 Jan 2019 01:43:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 33123 wishlist retitle 33123 ls: add case-sensitive --color option Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.166.52 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) severity 33123 wishlist retitle 33123 ls: add case-sensitive --color option
Received: (at control) by debbugs.gnu.org; 11 Jan 2019 08:43:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 03:43:38 2019 Received: from localhost ([127.0.0.1]:54497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ghsPi-0005Ft-3i for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 03:43:38 -0500 Received: from mail-io1-f52.google.com ([209.85.166.52]:37910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1ghsPf-0005Fd-Ny for control <at> debbugs.gnu.org; Fri, 11 Jan 2019 03:43:36 -0500 Received: by mail-io1-f52.google.com with SMTP id l14so11575368ioj.5 for <control <at> debbugs.gnu.org>; Fri, 11 Jan 2019 00:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=uq7A0Cy28p9uTw8pCr8jq07Fbfq/WLPd/fu86qK4744=; b=oADg1JDsqzoD+P3WX/1JXdkRLwR/N4buKSfzsjb2k4TTgkBDu/xPFH6EESiUKogltL 6/cdzBr4uyJST6zuRd3eqy4KW8j+SIsw8rvfiwmRbSVI9/Xq6/rqzTBpURpotzE7dNuu O8G32HBAQSI9YUPjx3w4MwVMH1JmXf3n5WR3rX7qUsM95edDlDPQpWPi3U8ciYU2DjyR eE0W4d0KP7Q43KNL7Y3vscuweZjsQ/8ibSukFanOMESiNgNbzAFLonLT+ZdXKBcRnvdO 5J/nvMSKGCbv73F+mHqAze3QSSlHMfg32FHAK4s4JF4t9JrcGX47DCEBmDXbZIXWJkEr YGRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=uq7A0Cy28p9uTw8pCr8jq07Fbfq/WLPd/fu86qK4744=; b=L4EkbiBBFIXvjFaPmuuIKG3x/skzc6rcvLe2ynvqrLPjX8Vkvpzn2me0PAcB0YqDPQ gGfLZ/FM0bRPcBoETs6yUl7hG0oc7YhRRRkrEVOV+uS3YJ7CdZqDkqsNophk+XiNzyi0 Oo6FhUC8sJqhPvVmb5b5q+BdDzhXYLoeQSJiHwPDMVeTMOxl885ltcQMfD9vgN89gUzI fCYv1H4hGeHU4GDKtMNeSa/TIlUa/3Xd5+gF823ad4IQj7O3dRExTI0ALCVU5gZqlcR3 CTNLlj/17NXtN4p/zdDt0oF/ae4ROQ1bE/n6TlbI2s+rmP51//dqgjWiPHsp3S0y1bUe VCZw== X-Gm-Message-State: AJcUukfmUklaAcL64sGqqr2p1KyoV1CFM6jA4L2T++tVTxgC227Mknsd ivWjZVNaoc7xm+Kv9yQ6ieXvSvPy X-Google-Smtp-Source: ALg8bN5XOPtls0hTpVHsPc+ybiWWHsEJIkPD6uR9BVsXvtZso11BkVS0x+4UekM2CklVjMwt9xnaHg== X-Received: by 2002:a5d:878d:: with SMTP id f13mr9215733ion.239.1547196209556; Fri, 11 Jan 2019 00:43:29 -0800 (PST) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id v202sm463308ita.13.2019.01.11.00.43.28 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 00:43:28 -0800 (PST) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <c35bf826-0a78-37bf-84c0-958ed4266dfe@HIDDEN> Date: Fri, 11 Jan 2019 01:43:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 33123 wishlist retitle 33123 ls: add case-sensitive --color option Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.166.52 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) severity 33123 wishlist retitle 33123 ls: add case-sensitive --color option
X-Loop: help-debbugs@HIDDEN Subject: bug#33123: ls: add case-sensitive --color option References: <C020852A-FC79-42A9-A388-14FA5E0B59EB@HIDDEN> In-Reply-To: <C020852A-FC79-42A9-A388-14FA5E0B59EB@HIDDEN> Resent-From: Mikael Magnusson <mikachu@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Tue, 10 May 2022 10:33:02 +0000 Resent-Message-ID: <handler.33123.B33123.165217874219404 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 33123 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 33123 <at> debbugs.gnu.org Cc: Eric Blake <eblake@HIDDEN> Received: via spool by 33123-submit <at> debbugs.gnu.org id=B33123.165217874219404 (code B ref 33123); Tue, 10 May 2022 10:33:02 +0000 Received: (at 33123) by debbugs.gnu.org; 10 May 2022 10:32:22 +0000 Received: from localhost ([127.0.0.1]:60418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1noNAD-00052u-LZ for submit <at> debbugs.gnu.org; Tue, 10 May 2022 06:32:22 -0400 Received: from mail-pg1-f178.google.com ([209.85.215.178]:46691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mikachu@HIDDEN>) id 1noLV2-00022b-C6 for 33123 <at> debbugs.gnu.org; Tue, 10 May 2022 04:45:44 -0400 Received: by mail-pg1-f178.google.com with SMTP id l11so8521651pgt.13 for <33123 <at> debbugs.gnu.org>; Tue, 10 May 2022 01:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=dhM6rclP8XriHay6ubuwawKJ93gIdGOgyVgWus/P0HQ=; b=JIztSE3P4fOAEogKIRviqOk/vadAjYYpy6G4Oco6ruHerXYjZ2FmklQfQxnel6KE52 r93GkrKBankkk4tP4JO2MnkKHdarL5jeRl4lb7m8CmMh4UHv407SXU6UEhv4HS3B5JfT LPhPLGcYAb4sbZOTtlMc3DZ8dJqSnCL6jyx0hkRrmc5f8EPRHrsZIMjevKI6sTO0+3ed p8GxnH1N4pAZ3K3N/q/9CbPm5pVOo4gao+6MuPFRYf9N5EYyUxW+VGngwYpfY6WRS504 Zj0K6iq8+FUZuNDLzHV3AyDxSZTm+ePVTyx1t7KViLVfBUD9/hiUTHSUObqjar7h4VLO p2WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=dhM6rclP8XriHay6ubuwawKJ93gIdGOgyVgWus/P0HQ=; b=EJlqO7pEWsLZIGJEkudC5anOWxf25AMm+e4wDFjNaGm8aH8Kw+0zxiH3Un8LczRPnW UfA0nEWOACEoOX24CkY7QUHQ3P5aUaTbFrNb8lenK2NR+5S0bdFoS3/voSqobeRQmjGy FfKab6LhB2C/GBLvfH30gRyhKBaaSBtxzhYlF4KByS6z/xrgrZjCTUNDlNVaaKwTXpzj zSsYuk27YJhfDkb0mY+5fDjz5XGLpWKWK1xXPYvKvOgwFGcmq6bzFww6HcS+pa6LM3u5 psdnbvNpKvtqIKOS4W/PxS+St5s8wp50bT5JI1Lnlv8ebz2j8UR1RxDVGzxH5kyfE47X MG+g== X-Gm-Message-State: AOAM5308UMJnYMH5CzJbdB7HUahniubDWT0mOUb6wyTTueiY6bBy4hhb tL+gkq0zhIfOEeeVtx1kLMROlWSOoXS7bjodTe9LvbIr X-Google-Smtp-Source: ABdhPJzy2rOE9nmFQit9xtZLFFdDWpFwSLGdbrjCzfU6l5MgZHY2ZBVyKr3sn/PCcXI2/hjJf2SrsOJMQOMKbg0PRUU= X-Received: by 2002:a05:6a00:1145:b0:4f6:3ebc:a79b with SMTP id b5-20020a056a00114500b004f63ebca79bmr19595206pfm.41.1652172338472; Tue, 10 May 2022 01:45:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a10:e897:0:0:0:0 with HTTP; Tue, 10 May 2022 01:45:37 -0700 (PDT) From: Mikael Magnusson <mikachu@HIDDEN> Date: Tue, 10 May 2022 10:45:37 +0200 Message-ID: <CAHYJk3SYfLa0WxrFBGE7_ZUVUQyx4Auq2JY19n712NR=V-TeEA@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Tue, 10 May 2022 06:32:19 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi, In bug #9086 [1] there was a lot of good discussion about case insensitive matching for dircolors. This was all then summarily ignored in [2] which made the behaviour unconditional. This breaks coloring of uppercase files that should have a different color from lowercase files, for example .C which is a c++ source file, not a c source file. And as mentioned in [1] it is also very useful to notice incorrectly (eg uppercase extension files) quickly by them being white, so you can fix them. I'm not sure if the suggestion in this bug (33123) is good though; since ls --color=auto-case will just error on older releases, you can't easily sync your aliases. Unfortunately ls also ignores all of LS_COLORS if it contains any unknown values (why??) so we can't add a "CS" field there for case sensitiveness either (unless there's some extra options field already I don't know about?). If anyone has some ideas I would be happy to produce a patch (assuming you don't need copyright assignment). [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=9086 [2] https://lists.gnu.org/archive/html/coreutils/2018-06/msg00011.html -- Mikael Magnusson
X-Loop: help-debbugs@HIDDEN Subject: bug#33123: ls: add case-sensitive --color option Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Tue, 10 May 2022 14:22:02 +0000 Resent-Message-ID: <handler.33123.B33123.165219250723297 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 33123 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Mikael Magnusson <mikachu@HIDDEN>, 33123 <at> debbugs.gnu.org Received: via spool by 33123-submit <at> debbugs.gnu.org id=B33123.165219250723297 (code B ref 33123); Tue, 10 May 2022 14:22:02 +0000 Received: (at 33123) by debbugs.gnu.org; 10 May 2022 14:21:47 +0000 Received: from localhost ([127.0.0.1]:34591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1noQkF-00063h-3E for submit <at> debbugs.gnu.org; Tue, 10 May 2022 10:21:47 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:36583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pixelbeat@HIDDEN>) id 1noQkD-00063P-0i for 33123 <at> debbugs.gnu.org; Tue, 10 May 2022 10:21:45 -0400 Received: by mail-wr1-f44.google.com with SMTP id u3so24054986wrg.3 for <33123 <at> debbugs.gnu.org>; Tue, 10 May 2022 07:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=CjE1tTKZE6XniWjBHrxAaw8zQ+m5Ct7rT3geINw5qHk=; b=gExBvkEu1OAnNZxzaKZoDEDA0im9vdWeSClI5nMpWJBGojtXYpTacrCDKVyFkjM+di ZuFqdjJ02VsrzAXx1xAYhOIJ06ME9EeKxYDH5T+1HjshM2SLOvWagXVdlpL3//wCoVfd 30jfV70Quja8332buL/6FgWZzFOUoZYakTNYVDLFcT0LsYxlz6PWMhgN6n4ra5EUMqcD 7NUdgDmuf1d/gOt4kRcjIXNXYa/lNM01bpPuQZFc2Ap947QzUYxL1flCsEgXnYmGMpqV LSJOIqZtBsDCCwCP1YKKLdJj3mYb5WQn5IFaH7I43uCJhd9vPbzflVCc/Y/ryqnrGazr b/yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=CjE1tTKZE6XniWjBHrxAaw8zQ+m5Ct7rT3geINw5qHk=; b=pkcZV0l79WqVnAw3XpIoeEE3Qu0+LF23UAO3H0J5Scflj3afyN9fQgwcVEH4dzUYbi BxfO/hgdvkOt6JZN9KkMRrr8k8x1l5e/RFpRpO7A/GBz6WSRASscmp3aiAm5DDLdt0r1 KZOgX847G+p9DxXW17raRxc/EkETWMoycb5Bv+xr+pmKz4c2mlL6adEjG7UTiQaNSukG ljw6EmN/7QEyhbXq0eINKmsYm9HyhaAFcEPEZDamuBqAgvX3/5jUrJkKwkf1EErTidmu rl4ZZtRj8A+apMP22zVzkIfDEtc2/LS+TCpQNDeYqKb56vPwvp4gOy2z2vCCn2Kd2UoI GCkg== X-Gm-Message-State: AOAM5312xY9NFOorsWMhJuxkMM3NyxQl+G/2nS/ZiuXldyTer+VLmy4h z7+d2OdZn8VtK9Egi3Ijhjs= X-Google-Smtp-Source: ABdhPJxLIHNkkaWuZcMCnlRuSCgUND7EcLEkJhf+IVEdzDJ+zlZ60/loLVCqn9mU1irc+piBtAvAeA== X-Received: by 2002:adf:fb10:0:b0:207:af88:1eb9 with SMTP id c16-20020adffb10000000b00207af881eb9mr19431257wrr.238.1652192498887; Tue, 10 May 2022 07:21:38 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id d12-20020adffbcc000000b0020c5253d8f4sm14281798wrs.64.2022.05.10.07.21.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 May 2022 07:21:38 -0700 (PDT) Message-ID: <0feeaaf4-54aa-13c5-134a-9664f4521ac5@HIDDEN> Date: Tue, 10 May 2022 15:21:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0 Content-Language: en-US References: <C020852A-FC79-42A9-A388-14FA5E0B59EB@HIDDEN> <CAHYJk3SYfLa0WxrFBGE7_ZUVUQyx4Auq2JY19n712NR=V-TeEA@HIDDEN> From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN> In-Reply-To: <CAHYJk3SYfLa0WxrFBGE7_ZUVUQyx4Auq2JY19n712NR=V-TeEA@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.5 (/) On 10/05/2022 09:45, Mikael Magnusson wrote: > Hi, > > In bug #9086 [1] there was a lot of good discussion about case > insensitive matching for dircolors. This was all then summarily > ignored in [2] which made the behaviour unconditional. This breaks > coloring of uppercase files that should have a different color from > lowercase files, for example .C which is a c++ source file, not a c > source file. And as mentioned in [1] it is also very useful to notice > incorrectly (eg uppercase extension files) quickly by them being > white, so you can fix them. > > I'm not sure if the suggestion in this bug (33123) is good though; > since ls --color=auto-case will just error on older releases, you > can't easily sync your aliases. Unfortunately ls also ignores all of > LS_COLORS if it contains any unknown values (why??) so we can't add a > "CS" field there for case sensitiveness either (unless there's some > extra options field already I don't know about?). > > If anyone has some ideas I would be happy to produce a patch (assuming > you don't need copyright assignment). > > [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=9086 > [2] https://lists.gnu.org/archive/html/coreutils/2018-06/msg00011.html Thanks for taking the time to tie all these threads together. Yes we forgot about [1] when implementing [2]. The ideas in [1] are sound. I.e. we shouldn't need a new option. We just need to honor any capitalized extension entries, and fall back to case insensitive for lower case extensions. We do need to be cognizant of performance though. We could sort the list of extensions, which would auto give precedence to capitalized entries, and we might also use that sorting to break out of the match loop early. I'll look at this soon. cheers, Pádraig
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.