Received: (at 33123) by debbugs.gnu.org; 10 May 2022 14:21:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 10 10:21:47 2022 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 Subject: Re: bug#33123: ls: add case-sensitive --color option Content-Language: en-US To: Mikael Magnusson <mikachu@HIDDEN>, 33123 <at> debbugs.gnu.org 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-Debbugs-Envelope-To: 33123 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
bug-coreutils@HIDDEN
:bug#33123
; Package coreutils
.
Full text available.Received: (at 33123) by debbugs.gnu.org; 10 May 2022 10:32:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 10 06:32:22 2022 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> Subject: ls: add case-sensitive --color option To: 33123 <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33123 X-Mailman-Approved-At: Tue, 10 May 2022 06:32:19 -0400 Cc: Eric Blake <eblake@HIDDEN> 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
bug-coreutils@HIDDEN
:bug#33123
; Package coreutils
.
Full text available.Assaf Gordon <assafgordon@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Assaf Gordon <assafgordon@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Assaf Gordon <assafgordon@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 23 Oct 2018 03:45:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 22 23:45:51 2018 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 Subject: non-backwards compatible change to ls Date: Mon, 22 Oct 2018 23:42:54 -0400 To: bug-coreutils@HIDDEN 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-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 22 Oct 2018 23:45:49 -0400 Cc: kaxandra.labat@HIDDEN 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--
Matt Martini <matt.martini@HIDDEN>
:bug-coreutils@HIDDEN
.
Full text available.bug-coreutils@HIDDEN
:bug#33123
; Package coreutils
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.