From unknown Sat Sep 06 14:23:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23024: ls output quoting (when using --dired switch) Resent-From: Daniel Lopez Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 15 Mar 2016 23:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23024 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 23024@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14580850163166 (code B ref -1); Tue, 15 Mar 2016 23:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Mar 2016 23:36:56 +0000 Received: from localhost ([127.0.0.1]:49523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1afyWG-0000p0-92 for submit@debbugs.gnu.org; Tue, 15 Mar 2016 19:36:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1afyWE-0000on-P9 for submit@debbugs.gnu.org; Tue, 15 Mar 2016 19:36:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afyW8-0003Nc-LU for submit@debbugs.gnu.org; Tue, 15 Mar 2016 19:36:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afyW8-0003NS-Hd for submit@debbugs.gnu.org; Tue, 15 Mar 2016 19:36:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afyW7-0005SH-JI for bug-coreutils@gnu.org; Tue, 15 Mar 2016 19:36:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afyW4-0003Je-DJ for bug-coreutils@gnu.org; Tue, 15 Mar 2016 19:36:47 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:35429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afyW4-0003Io-5T for bug-coreutils@gnu.org; Tue, 15 Mar 2016 19:36:44 -0400 Received: by mail-wm0-x236.google.com with SMTP id l68so169248283wml.0 for ; Tue, 15 Mar 2016 16:36:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=JCoFqODPcfUr4m19jo/Hc8zDC5QfOiH2Nnw5x280kEs=; b=zUDCPathlC+FX7A8tv8j0baMIjCThtLqPepI1ZYdTiMTkBdP8CQozm5SwE1vStnO58 G3nCPfKCi+VC8O8tkmwEBlO+ADagScdLvPe/0VxmPGp0Zf7liCmjxvn9Iz2cgTwP1l1R 0rJ4Ug4Yv0t/1bj6lIkRxODyMn9s/5R7P4PebTLCjVVWIe5oTO7ORkmI300o4rprueWe wgr8ultheB07kqyBy54Fl12RrWxbXjN2GkRc71NMz+1I44lnb3lXoO6PrkPmh0h3bL1b OLG5rjVVkVtGqe3HPi8sSss+57VNzCQjSZ9uuV0lXp41qkoGJLqU97MptclHoXGP3Ct/ Xa/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=JCoFqODPcfUr4m19jo/Hc8zDC5QfOiH2Nnw5x280kEs=; b=ApFPdMWVtQJp73gkA4FmdAYCrq9V0DtB673K2HXC9GIcRnwbPMIwRXyu/mPFJFR6Yx s6SG81jN1qB/deuW51J/hzgomXNH4RgWiOdzatuAAJJthBvnUtFFNO8WPGd7cfsBzjHA 5KkM1U2njrKP4KRU16pjFl9r9/jUrzn3E59q9MluPIcnsYZWINcjcaglmxJcaWoy7qZZ ppt/kDZsBsVSq9LErwgW68u1koXi7XXBLHDu7yRR2zcI1cLs3sOox8YNeQH7Hadrci3w ui2PhSk906oU+7wNLk0HeNuZeTItmzP0zcOLyo99KS6AVfiVshAKWlIBCHiF7vx74cGa WsPQ== X-Gm-Message-State: AD7BkJL03hh9AMUfcCutJxKk8GXC9CDoZjm1nVn2MerZASqsqt0ri9vzpMqJrGVMjvuOzw== X-Received: by 10.194.83.42 with SMTP id n10mr548900wjy.20.1458085002943; Tue, 15 Mar 2016 16:36:42 -0700 (PDT) Received: from [192.168.2.2] (w-79.cust-5765.ip.static.uno.uk.net. [95.172.231.79]) by smtp.googlemail.com with ESMTPSA id g203sm22872982wmf.23.2016.03.15.16.36.41 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2016 16:36:42 -0700 (PDT) From: Daniel Lopez Message-ID: <56E89C4F.90604@gmail.com> Date: Tue, 15 Mar 2016 23:35:43 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) 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: -3.8 (---) Hi, The recent change to the default way that ls renders filenames with spaces in (now surrounding them in single quotes) is also happening in the presence of this switch: -D, --dired generate output designed for Emacs' dired mode and it's correspondingly breaking Emacs' dired mode in some circumstances. Specifically, it's affecting me when I use dired in Emacs to browse files on a remote machine through Emacs' 'Tramp' feature. The spaced/quoted files and directories can't be opened or navigated into. Test case: - Start Emacs (I'm using the current stable version 24.5.1) - Find file (C-x C-f) and enter "/ssh:localhost:" (since I'm using localhost as an example, you'll need to have a local SSH server running) - Notice that files or directories with spaces in the name are surrounded in quotes, and can't be opened (by putting the cursor on them and pressing return) Whatever one thinks of the default change in general (I disapprove, myself; I find the intermittently-appearing quotes disturbing the alignment in an "ls -l" and disrupting my flow as a human reader), perhaps it should be done in a way that does not disturb other use cases that ls also explicitly claims to support. Daniel From unknown Sat Sep 06 14:23:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23024: ls output quoting (when using --dired switch) Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 16 Mar 2016 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23024 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Daniel Lopez , 23024@debbugs.gnu.org Received: via spool by 23024-submit@debbugs.gnu.org id=B23024.145814805815583 (code B ref 23024); Wed, 16 Mar 2016 17:08:02 +0000 Received: (at 23024) by debbugs.gnu.org; 16 Mar 2016 17:07:38 +0000 Received: from localhost ([127.0.0.1]:50396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agEv4-00043H-LF for submit@debbugs.gnu.org; Wed, 16 Mar 2016 13:07:38 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:42126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agEv2-000438-KE for 23024@debbugs.gnu.org; Wed, 16 Mar 2016 13:07:37 -0400 Received: from localhost.localdomain (unknown [109.77.172.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id F38EF4A8E; Wed, 16 Mar 2016 17:07:34 +0000 (GMT) References: <56E89C4F.90604@gmail.com> From: =?UTF-8?Q?P=C3=A1draig?= Brady Message-ID: <56E992D5.4020109@draigBrady.com> Date: Wed, 16 Mar 2016 17:07:33 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56E89C4F.90604@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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.0 (/) On 15/03/16 23:35, Daniel Lopez wrote: > Hi, > > The recent change to the default way that ls renders filenames with > spaces in (now surrounding them in single quotes) is also happening in > the presence of this switch: > > -D, --dired generate output designed for Emacs' dired mode > > and it's correspondingly breaking Emacs' dired mode in some > circumstances. Specifically, it's affecting me when I use dired in Emacs > to browse files on a remote machine through Emacs' 'Tramp' feature. The > spaced/quoted files and directories can't be opened or navigated into. > > Test case: > - Start Emacs (I'm using the current stable version 24.5.1) > - Find file (C-x C-f) and enter "/ssh:localhost:" (since I'm using > localhost as an example, you'll need to have a local SSH server running) > - Notice that files or directories with spaces in the name are > surrounded in quotes, and can't be opened (by putting the cursor on them > and pressing return) > > Whatever one thinks of the default change in general (I disapprove, > myself; I find the intermittently-appearing quotes disturbing the > alignment in an "ls -l" and disrupting my flow as a human reader), > perhaps it should be done in a way that does not disturb other use cases > that ls also explicitly claims to support. Right, we shouldn't mess with quoting in --dired mode. I'll fix it up shortly. thanks, Pádraig From unknown Sat Sep 06 14:23:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23024: ls output quoting (when using --dired switch) Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 28 Sep 2016 20:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23024 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Daniel Lopez , 23024@debbugs.gnu.org Received: via spool by 23024-submit@debbugs.gnu.org id=B23024.147509423325976 (code B ref 23024); Wed, 28 Sep 2016 20:24:02 +0000 Received: (at 23024) by debbugs.gnu.org; 28 Sep 2016 20:23:53 +0000 Received: from localhost ([127.0.0.1]:38216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpLOS-0006ku-Tr for submit@debbugs.gnu.org; Wed, 28 Sep 2016 16:23:53 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:41260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpLOR-0006kl-6j for 23024@debbugs.gnu.org; Wed, 28 Sep 2016 16:23:51 -0400 Received: from [192.168.1.80] (unknown [109.76.85.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id DE4CA16F; Wed, 28 Sep 2016 21:23:47 +0100 (IST) References: <56E89C4F.90604@gmail.com> <56E992D5.4020109@draigBrady.com> From: =?UTF-8?Q?P=C3=A1draig?= Brady Message-ID: <2dd913e4-eb67-174d-3adc-f02ac49931ed@draigBrady.com> Date: Wed, 28 Sep 2016 21:23:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <56E992D5.4020109@draigBrady.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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.0 (/) On 16/03/16 17:07, Pádraig Brady wrote: > On 15/03/16 23:35, Daniel Lopez wrote: >> Hi, >> >> The recent change to the default way that ls renders filenames with >> spaces in (now surrounding them in single quotes) is also happening in >> the presence of this switch: >> >> -D, --dired generate output designed for Emacs' dired mode >> >> and it's correspondingly breaking Emacs' dired mode in some >> circumstances. Specifically, it's affecting me when I use dired in Emacs >> to browse files on a remote machine through Emacs' 'Tramp' feature. The >> spaced/quoted files and directories can't be opened or navigated into. >> >> Test case: >> - Start Emacs (I'm using the current stable version 24.5.1) >> - Find file (C-x C-f) and enter "/ssh:localhost:" (since I'm using >> localhost as an example, you'll need to have a local SSH server running) >> - Notice that files or directories with spaces in the name are >> surrounded in quotes, and can't be opened (by putting the cursor on them >> and pressing return) >> >> Whatever one thinks of the default change in general (I disapprove, >> myself; I find the intermittently-appearing quotes disturbing the >> alignment in an "ls -l" and disrupting my flow as a human reader), >> perhaps it should be done in a way that does not disturb other use cases >> that ls also explicitly claims to support. > > Right, we shouldn't mess with quoting in --dired mode. > I'll fix it up shortly. On further analysis I see that --dired mode already distinguishes the quoting-style in its output. Also we had already documented that --dired should specify a --quoting-style to get consistent output. Also this looks to have been fixed already in emacs: https://github.com/emacs-mirror/emacs/commit/e4adb6 That handles all cases as well as users having QUOTING_STYLE set in their environment with versions of ls prior to 8.24. Therefore I'm inclined to leave this behavior as is. thanks, Pádraig From unknown Sat Sep 06 14:23:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23024: ls output quoting (when using --dired switch) Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 25 Oct 2018 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23024 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 23024@debbugs.gnu.org Received: via spool by 23024-submit@debbugs.gnu.org id=B23024.154048379926134 (code B ref 23024); Thu, 25 Oct 2018 16:10:02 +0000 Received: (at 23024) by debbugs.gnu.org; 25 Oct 2018 16:09:59 +0000 Received: from localhost ([127.0.0.1]:42746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFiCt-0006nP-1S for submit@debbugs.gnu.org; Thu, 25 Oct 2018 12:09:59 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:43422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFiCr-0006nA-R6; Thu, 25 Oct 2018 12:09:58 -0400 Received: by mail-io1-f68.google.com with SMTP id y10-v6so5810062ioa.10; Thu, 25 Oct 2018 09:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=F+oryH20nvapEa5TPuX7PUUeQ/zsVKfci/4Gr1jRUKc=; b=rB/e7euGVE1E1tkGfBcxKSrV15N2Z2yoXVVNBKEC3sfXqveAPFRfdpZ1gxKh6s4pna iEizMw8BW+1A3Vub0E6CV/g9bKC40pO9xGTl1OptlmpLmS4uujcF9FXMbvr3we86/hYo R/0dlbHpqsP16Dr2EYIM6V38wacB8loDv+p+125wxB7yHtoJqcShgMxeXFy+U3Uww2el g7FO/ncrlUEPzqnC/B68OhG7gLbPwbufcitx+yN1WD6rNFW7x+xqna5TbaJWNnzMf0eW ApN8pqarqzDn2PHqAJgdR4Hf0Q6s/oINB877VpuA/lkUr5bzdffTfYw4MfhRbZ6pxKgZ Kmng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=F+oryH20nvapEa5TPuX7PUUeQ/zsVKfci/4Gr1jRUKc=; b=K+mXz8WHlj3NaoUJWTXOZ186XHnRZuIQc3/0wZC/W9Ti7jM6WuovUoO/hgtgS/NIwZ Wly3fmnN8uqOqAgE11p/2jsiyghosAg+nZKYa0uR+aRcshG6J/ozLg4iqPvKDFuGiUon QgSxndH2E+mb1p4tzEKYrTwFDbRU+0MW5tuomYjkwMG2ueihxrxjJYLaB6PpHgHhfzvr aNei1vpdD+KqErFK7eUUjDx0hfk9pL+ODyRbFdoYTnu8/JjEZQvO4AmHsL7ngOJBXB+n mWXhH9JUbI+MvN1xvVIE2cF0YAAC7GlgS5LK+57fViwv146/0vDcFN4wJfVI340R3/IY M2bw== X-Gm-Message-State: AGRZ1gJusV1hj1oJBSZSg6xTQ61G+Ox2NhhlHv3tdvdNMEgDUqeeR2H8 00vOHzYeWyLc/xVrWAxjWiBAUIliFLE= X-Google-Smtp-Source: AJdET5dA0FWJ7Tz1L52SkFp/TXsbzIhwBIW9NcneXw93YqLzlfNiRNfr9nRrV5k0fF/8S9fXLlzazA== X-Received: by 2002:a6b:e415:: with SMTP id u21-v6mr1503014iog.78.1540483791550; Thu, 25 Oct 2018 09:09:51 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id l186-v6sm1134452itb.19.2018.10.25.09.09.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Oct 2018 09:09:49 -0700 (PDT) Date: Thu, 25 Oct 2018 10:09:47 -0600 From: Assaf Gordon Message-ID: <20181025160947.y4v4gljsa5hndm62@tomato.housegordon.com> References: <56E89C4F.90604@gmail.com> <56E992D5.4020109@draigBrady.com> <2dd913e4-eb67-174d-3adc-f02ac49931ed@draigBrady.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2dd913e4-eb67-174d-3adc-f02ac49931ed@draigBrady.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Score: -0.0 (/) 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: -1.0 (-) close 23024 stop (triaging old bugs) On Wed, Sep 28, 2016 at 09:23:47PM +0100, Pádraig Brady wrote: > On 16/03/16 17:07, Pádraig Brady wrote: > > On 15/03/16 23:35, Daniel Lopez wrote: > >> > >> The recent change to the default way that ls renders filenames with > >> spaces in (now surrounding them in single quotes) is also happening in > >> the presence of this switch: > >> > > Right, we shouldn't mess with quoting in --dired mode. > > On further analysis I see that --dired mode already distinguishes > the quoting-style in its output. Also we had already documented > that --dired should specify a --quoting-style to get consistent output. > Also this looks to have been fixed already in emacs: > https://github.com/emacs-mirror/emacs/commit/e4adb6 > > Therefore I'm inclined to leave this behavior as is. > With no further comments in 2 years, I'm closing this bug. -assaf