From debbugs-submit-bounces@debbugs.gnu.org Mon May 04 08:34:00 2020 Received: (at submit) by debbugs.gnu.org; 4 May 2020 12:34:00 +0000 Received: from localhost ([127.0.0.1]:59234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVaIK-00043Y-7p for submit@debbugs.gnu.org; Mon, 04 May 2020 08:34:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:57564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVXda-0003t2-Jp for submit@debbugs.gnu.org; Mon, 04 May 2020 05:43:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVXda-0000mJ-8w for bug-coreutils@gnu.org; Mon, 04 May 2020 05:43:46 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:34450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVXdZ-0000TX-Im for bug-coreutils@gnu.org; Mon, 04 May 2020 05:43:45 -0400 Received: by mail-wr1-x42c.google.com with SMTP id y3so1082719wrt.1 for ; Mon, 04 May 2020 02:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=gsyLjPDQtINHUsLFIYG5Emq/uKG3iD/agR1SKTdJzew=; b=tc/4Lpw7PUAMx5slfVHaC9Km2KTDxk+ipz65A3QKJy9c5r0wznz416MApIPxV0WZVD VSKa61oXtMawXDwsQJbomskDJ4ltTS1h+DzHBXdEmoSt8XFjCgJ+vrdcGY0NfXuLonBx hL5OEwevvDo66uY+FWrPSNrx4XBX+1srkgVU3P2ltTzWw9SEl2FGGQs/wf6x6AWk1ptg hMUApFs+4hNHDW+W7GSMcJhh11jZyQI8N44Y+BEjCL1Gt6L56urA3CkhKTwLFaaYRcU2 Vis+XHIkFQIroC2NerTCccjFJiBozVpe761Is+l0hxKuihab4CURuXzGiGcWHln6vUAg goxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=gsyLjPDQtINHUsLFIYG5Emq/uKG3iD/agR1SKTdJzew=; b=XaNfUFoXzCP0BWlsaS/nVuqZPiyNahbxPpTddNkzMoPlYRVt/ZDHMNM9WiAyeTpuxZ 1/QSFhnlGswggngmXTkhKBVDWmEzMT2oiI3EKtOC0AiC57gbAyYltQGZad17jn0sTzh/ i0WsdOFAH7pq3a+DFdLmsZQQ1W8bepBDLK7gzj4nOtfIGC4LYtemKYj3YROJXDq7siXJ hUSqKVlc0mrZDMkzarYKV+sbE2LIdefbEOq6ECawGFem0vHDbOEqpiEtmb+TNizw9RkT DYqLPG+NrjeSJGAnkPNzRBuBuNhJLZ982ixe/M7YUwmCy3oWajSO/Hp3UPvDXPLmmHVu yK+A== X-Gm-Message-State: AGi0PuZE4Mh3NghZyq1YVGdtada7N1QOFdERkkqCyI50H6twBRsyCSOl uRCSDNV+OzMeGPJNFb+pZsNpz/Sc X-Google-Smtp-Source: APiQypIlw9FKqioh3oFBfZP/7wwLRyxdRE+F5/2Eg2DxqtWq95iIGYjdRudVTZFJdHxd3rsYCeuLKQ== X-Received: by 2002:adf:ca0e:: with SMTP id o14mr19708945wrh.254.1588585423389; Mon, 04 May 2020 02:43:43 -0700 (PDT) Received: from [192.168.23.52] (188.29.164.146.threembb.co.uk. [188.29.164.146]) by smtp.gmail.com with ESMTPSA id 5sm12157903wmg.34.2020.05.04.02.43.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2020 02:43:42 -0700 (PDT) To: bug-coreutils@gnu.org From: Chris Elvidge Subject: Changes to 'ls' output Message-ID: Date: Mon, 4 May 2020 10:43:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=celvidge001@gmail.com; helo=mail-wr1-x42c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 1.9 (+) 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: I have noticed that the output of ls seems to have changed from v8.25 to v8.32 where there is an apostrophe in the filename (sometimes); change from " surrounding to ' surrounding and '\'' replacing ' [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnu.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (celvidge001[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (celvidge001[at]gmail.com) -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] 1.0 FREEMAIL_REPLY From and body contain different freemails 2.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 04 May 2020 08:33:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) I have noticed that the output of ls seems to have changed from v8.25 to v8.32 where there is an apostrophe in the filename (sometimes); change from " surrounding to ' surrounding and '\'' replacing '. When output is piped through xxd, it is the same in both versions. I have 8.32 installed in ~/bin/. Any ideas? $ bash --version GNU bash, version 5.0.11(1)-release (i686-pc-linux-gnu) Copyright (C) 2019 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. [0] slack142!chris:(pts/2):Sun 03 May 2020 02:36 pm BST:/home/chris/bin $ /usr/bin/ls --version ls (GNU coreutils) 8.25 Copyright (C) 2016 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. Written by Richard M. Stallman and David MacKenzie. [0] slack142!chris:(pts/2):Sun 03 May 2020 01:59 pm BST:/home/chris/bin $ /usr/bin/ls /media/sf_Music/W.A.S.P\ -\ Greatest\ Hits/*Don* /media/sf_Music/W.A.S.P - Greatest Hits/08 - I Don't Need No Doctor.m4a /media/sf_Music/W.A.S.P - Greatest Hits/10 - Don't Cry (Just Suck).m4a [0] slack142!chris:(pts/2):Sun 03 May 2020 01:59 pm BST:/home/chris/bin $ ~/bin/ls --version ls (GNU coreutils) 8.32 Copyright (C) 2020 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. Written by Richard M. Stallman and David MacKenzie. [0] slack142!chris:(pts/2):Sun 03 May 2020 01:58 pm BST:/home/chris/bin $ ~/bin/ls /media/sf_Music/W.A.S.P\ -\ Greatest\ Hits/*Don* "/media/sf_Music/W.A.S.P - Greatest Hits/08 - I Don't Need No Doctor.m4a" '/media/sf_Music/W.A.S.P - Greatest Hits/10 - Don'\''t Cry (Just Suck).m4a' [0] slack142!chris:(pts/2):Sun 03 May 2020 01:59 pm BST:/home/chris/bin -- Chris Elvidge 5 Ebor Park, Appleton Roebuck, York. YO23 7DZ. Tel (Mob): +447443472958 mailto:celvidge@outlook.com Calle Padre Raimundo Codesal 1, Vélez-Málaga, 29700, España From debbugs-submit-bounces@debbugs.gnu.org Mon May 04 11:14:31 2020 Received: (at 41075) by debbugs.gnu.org; 4 May 2020 15:14:31 +0000 Received: from localhost ([127.0.0.1]:33709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVcne-0002VV-Pw for submit@debbugs.gnu.org; Mon, 04 May 2020 11:14:31 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:33786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVcnd-0002VD-0h; Mon, 04 May 2020 11:14:29 -0400 Received: by mail-wr1-f50.google.com with SMTP id h9so11077242wrt.0; Mon, 04 May 2020 08:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NWVNblmHpv63hgQL+Xq67j7LKv/7XIBTn+IzmF3hNu0=; b=sNEFvmwldVTbpN9hkMEgVwoGiB4w7P8R04iT0R/dLQ/EW9bvvI6DGnYOPJM8cP46Df jfvQr0aK2HfJR0Ic20uneS5UfOcuJ7kH3TVNN8vVgfnmwS3wvnbCWV7sAk3hZKrmUNgV 28e4oeEDL4b9T5A6Vk72RLrNJn0z0JpTFnZCthIwvMPKHuLLtV8nBqXwhJvX58N9R6nd v8VZffONw/7et2shN97/7LLgOqBvK5wsbj7Ndr+WAJAJfOJnIzWtrxj62Ql2kBs4FrKi uqQGaptrB9wy87bH6wcivgPmWKjqxcwOm1u6AmgXZ5E/2SgmOoDAcB+JImKhiWf6ciYZ J+tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NWVNblmHpv63hgQL+Xq67j7LKv/7XIBTn+IzmF3hNu0=; b=PRgPebZbOOaGpAF9yxszAr2Oc5j5U07QeGnnUTF2+8HaYzP1F4dIrh632geMu95G3d CBCjPNEIAJ1FNKqM1lssxh4B5PMN0FOA1B97GMe8W2SlEef4xjJgo6fRLkJcuLd1Ac4H DfwjuVTTrt8FiFh+n/6jx3Y8njxWbiZgGLiYp2jxTY4jbmkp1llro+d7Q/SRV5oC3hWd AXDL0n0zg1gGpqH27pDNXAWGIk080P3chaD7fAvzPmpAgYhl9x9Ckk+x/IvT6K81Dd/P I4rEgUjL9cXBrWWsnOTDSzc1ih4bYIXs3OcsLGLG+tU1kdzLJtuszuzqw1uJRy3Or/ca Zejg== X-Gm-Message-State: AGi0PuZqEEKHJ2nQmkCWvsrtKe2Yc8bNWzdvkEmc3wdQgTUyQbjYT0xv 3sgHY8xvckNkL5eNrjpUI/wy+WsP X-Google-Smtp-Source: APiQypKkURoNpJNb/DV3AHnENpQ164emYrut9yEdO5z9+PXDmD7yYDd/2TP+QECG3ITJ+ZOyf2Rz0Q== X-Received: by 2002:a05:6000:110a:: with SMTP id z10mr19561640wrw.389.1588605262803; Mon, 04 May 2020 08:14:22 -0700 (PDT) Received: from localhost.localdomain (86-42-14-227-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.42.14.227]) by smtp.googlemail.com with ESMTPSA id w9sm2499728wrc.27.2020.05.04.08.14.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 May 2020 08:14:21 -0700 (PDT) Subject: Re: bug#41075: Changes to 'ls' output To: Chris Elvidge , 41075@debbugs.gnu.org References: From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: <925ffe77-6644-82e8-b252-009140ff7264@draigBrady.com> Date: Mon, 4 May 2020 16:14:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Thunderbird/76.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 41075 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tag 41075 notabug close 41075 stop On 04/05/2020 10:43, Chris Elvidge wrote: > I have noticed that the output of ls seems to have changed from v8.25 to > v8.32 where there is an apostrophe in the filename (sometimes); change > from " surrounding to ' surrounding and '\'' replacing '. When output is > piped through xxd, it is the same in both versions. I have 8.32 > installed in ~/bin/. Any ideas? This is due to new quoting functionality which is discussed at: https://www.gnu.org/software/coreutils/quotes.html As to your particular observation, when there are only single quotes, then we'll change to using double quotes to simplify the quoting. Once there are other problematic characters, we switch to quoting with single quotes, as shown in these examples: $ ls -1 "just'single" 'single'\''and(brackets)' Note quoting is disabled when output is not to a terminal. $ ls -1 | cat just'single single'and(brackets) You can disable this quoting behavior if you prefer, by adding '-N' to your ls alias. thanks, Pádraig From unknown Fri Aug 15 20:57:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 02 Jun 2020 11:24:06 +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