GNU bug report logs - #31353
ls-quotes: ls unexpectedly quoting filenames

Previous Next

Package: coreutils;

Reported by: billy noah <billynoah <at> gmail.com>

Date: Thu, 3 May 2018 02:51:02 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31353 in the body.
You can then email your comments to 31353 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#31353; Package coreutils. (Thu, 03 May 2018 02:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to billy noah <billynoah <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 03 May 2018 02:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: billy noah <billynoah <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: ls unexpectedly quoting filenames
Date: Wed, 2 May 2018 22:38:03 -0400
[Message part 1 (text/plain, inline)]
In a clean installation of Ubuntu 18.04 suddenly ls has defaulted to
quoting filenames with tilde ~, spaces and other characters which may
require escaping.  Some extended discussion can be found here:
https://unix.stackexchange.com/questions/258679/why-is-ls-suddenly-wrapping-items-with-spaces-in-single-quotes

Please revert this to the decades old standard behaviour.  No one seems to
like this new behaviour and it has only led to mass confusion.  Having the
new quoted style as an option would be fine but it should not be the
default.  Please and thank you.

- Billy Noah
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#31353; Package coreutils. (Thu, 03 May 2018 06:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 31353 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: billy noah <billynoah <at> gmail.com>, 31353 <at> debbugs.gnu.org
Subject: Re: bug#31353: ls unexpectedly quoting filenames
Date: Wed, 2 May 2018 23:01:12 -0700
billy noah wrote:

> No one seems to
> like this new behaviour
I like the new behavior. The old behavior had security problems, since file 
names with unusual characters could confuse users into thinking that the file 
system was X when it really was Y.  The new behavior avoids these problems, and 
so is safer and more predictable.  You can resurrect the old behavior, if you 
like, by using a shell script called 'ls' that invokes /usr/bin/ls with the 
settings you prefer.  However, the default settings should be safe, not risky.




Information forwarded to bug-coreutils <at> gnu.org:
bug#31353; Package coreutils. (Thu, 03 May 2018 11:57:01 GMT) Full text and rfc822 format available.

Message #11 received at 31353 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>, billy noah <billynoah <at> gmail.com>,
 31353 <at> debbugs.gnu.org
Subject: Re: bug#31353: ls unexpectedly quoting filenames
Date: Thu, 3 May 2018 13:56:00 +0200
On 05/03/2018 08:01 AM, Paul Eggert wrote:
> I like the new behavior.

+1




Information forwarded to bug-coreutils <at> gnu.org:
bug#31353; Package coreutils. (Thu, 03 May 2018 15:12:02 GMT) Full text and rfc822 format available.

Message #14 received at 31353 <at> debbugs.gnu.org (full text, mbox):

From: billy noah <billynoah <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 31353 <at> debbugs.gnu.org
Subject: Re: bug#31353: ls unexpectedly quoting filenames
Date: Thu, 3 May 2018 07:16:10 -0400
[Message part 1 (text/plain, inline)]
Ok I stand corrected about no one liking it.  But I just read upwards of
100 comments on that linked SO question and I don't recall a single person
speaking up in favor of the new behaviour.  While you may have a point
about security issues, the new default should probably be a user selectable
option, not the default.  Have you conducted any kind of poll to determine
what the vast majority of users prefer?  Can you please illustrate a
scenario where non-quoted filenames would be a security issue?

On Thu, May 3, 2018 at 2:01 AM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> billy noah wrote:
>
> No one seems to
>> like this new behaviour
>>
> I like the new behavior. The old behavior had security problems, since
> file names with unusual characters could confuse users into thinking that
> the file system was X when it really was Y.  The new behavior avoids these
> problems, and so is safer and more predictable.  You can resurrect the old
> behavior, if you like, by using a shell script called 'ls' that invokes
> /usr/bin/ls with the settings you prefer.  However, the default settings
> should be safe, not risky.
>
[Message part 2 (text/html, inline)]

Changed bug title to 'ls-quotes: ls unexpectedly quoting filenames' from 'ls unexpectedly quoting filenames' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 03:19:01 GMT) Full text and rfc822 format available.

Reply sent to Assaf Gordon <assafgordon <at> gmail.com>:
You have taken responsibility. (Thu, 13 Dec 2018 20:31:01 GMT) Full text and rfc822 format available.

Notification sent to billy noah <billynoah <at> gmail.com>:
bug acknowledged by developer. (Thu, 13 Dec 2018 20:31:02 GMT) Full text and rfc822 format available.

Message #21 received at 31353-done <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: billy noah <billynoah <at> gmail.com>, 31353-done <at> debbugs.gnu.org
Subject: Re: bug#31353: ls unexpectedly quoting filenames
Date: Thu, 13 Dec 2018 13:30:02 -0700
Hello,

On 2018-05-02 8:38 p.m., billy noah wrote:
> In a clean installation of Ubuntu 18.04 suddenly ls has defaulted to
> quoting filenames with tilde ~, spaces and other characters which may
> require escaping.  Some extended discussion can be found here:
> https://unix.stackexchange.com/questions/258679/why-is-ls-suddenly-wrapping-items-with-spaces-in-single-quotes
> 

We created a summary of common issues and FAQs
regarding the quoting change in ls(1):
  https://www.gnu.org/software/coreutils/quotes.html

If there is an issue that is not addressed there,
please send an email to coreutils <at> gnu.org .

regards,
 - assaf




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 11 Jan 2019 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 239 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.