GNU bug report logs - #22580
ls-quotes: shell-escape in tty in ls

Previous Next

Package: coreutils;

Reported by: Paul Vint <pjvint <at> gmail.com>

Date: Sun, 7 Feb 2016 07:41:01 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 22580 in the body.
You can then email your comments to 22580 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#22580; Package coreutils. (Sun, 07 Feb 2016 07:41:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Vint <pjvint <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 07 Feb 2016 07:41:01 GMT) Full text and rfc822 format available.

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

From: Paul Vint <pjvint <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: shell-escape in tty in ls
Date: Sat, 6 Feb 2016 23:28:59 -0500
[Message part 1 (text/plain, inline)]
Maybe I'm the only one, but the new change in ls seems bad:

      set_quoting_style (NULL, shell_escape_quoting_style);

This is set if the output is a TTY.
Why would we want to quote if the output is a TTY?

It makes the output appear strange to me.

Example:
### Begin paste from terminal  ####
pvint <at> localhost ~ $ mkdir ls
pvint <at> localhost ~ $ cd ls
pvint <at> localhost ~/ls $ touch HelloWorld
pvint <at> localhost ~/ls $ touch Hello\ World
pvint <at> localhost ~/ls $ ls
'Hello World'  HelloWorld
pvint <at> localhost ~/ls $ ls -l
total 0
-rw-r--r-- 1 pvint users 0 Feb  6 22:35 'Hello World'
-rw-r--r-- 1 pvint users 0 Feb  6 22:35 HelloWorld
#### end paste from terminal  ####

This change occurred at version 8.25
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=109b9220cead6e979d22d16327c4d9f8350431cc#patch3

I don't see the benefit to this change (partly because I'm a stubborn old
guy who thinks "it's been this way for decades!"), but if there is a good
one, I'll say "Cool, thanks!".

Cheers,
Paul Vint
pjvint <at> gmail.com
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#22580; Package coreutils. (Sun, 07 Feb 2016 07:45:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Paul Vint <pjvint <at> gmail.com>, 22580 <at> debbugs.gnu.org
Subject: Re: bug#22580: shell-escape in tty in ls
Date: Sat, 6 Feb 2016 23:44:48 -0800
On 06/02/16 20:28, Paul Vint wrote:
> Maybe I'm the only one, but the new change in ls seems bad:
> 
>       set_quoting_style (NULL, shell_escape_quoting_style);
> 
> This is set if the output is a TTY.
> Why would we want to quote if the output is a TTY?
> 
> It makes the output appear strange to me.
> 
> Example:
> ### Begin paste from terminal  ####
> pvint <at> localhost ~ $ mkdir ls
> pvint <at> localhost ~ $ cd ls
> pvint <at> localhost ~/ls $ touch HelloWorld
> pvint <at> localhost ~/ls $ touch Hello\ World
> pvint <at> localhost ~/ls $ ls
> 'Hello World'  HelloWorld
> pvint <at> localhost ~/ls $ ls -l
> total 0
> -rw-r--r-- 1 pvint users 0 Feb  6 22:35 'Hello World'
> -rw-r--r-- 1 pvint users 0 Feb  6 22:35 HelloWorld
> #### end paste from terminal  ####
> 
> This change occurred at version 8.25
> http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=109b9220cead6e979d22d16327c4d9f8350431cc#patch3
> 
> I don't see the benefit to this change (partly because I'm a stubborn old
> guy who thinks "it's been this way for decades!"), but if there is a good
> one, I'll say "Cool, thanks!".

You can get back to the old way by adding -N to your ls alias.
It's been discussed on the list already but in summary the
main reasons are so that the output from ls is not ambiguous,
and can be cut and pasted to other commands.

thanks,
Pádraig





Changed bug title to 'ls-quotes: shell-escape in tty in ls' from 'shell-escape in tty in ls' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 25 Oct 2018 15:43: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:23:02 GMT) Full text and rfc822 format available.

Notification sent to Paul Vint <pjvint <at> gmail.com>:
bug acknowledged by developer. (Thu, 13 Dec 2018 20:23:02 GMT) Full text and rfc822 format available.

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

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Paul Vint <pjvint <at> gmail.com>, 22580-done <at> debbugs.gnu.org
Subject: Re: bug#22580: shell-escape in tty in ls
Date: Thu, 13 Dec 2018 13:22:20 -0700
Hello,

On 2016-02-07 12:44 a.m., Pádraig Brady wrote:
> On 06/02/16 20:28, Paul Vint wrote:
>> Maybe I'm the only one, but the new change in ls seems bad:
>>
>>        set_quoting_style (NULL, shell_escape_quoting_style);
>>
>> This is set if the output is a TTY.
>> Why would we want to quote if the output is a TTY?
>>
>> It makes the output appear strange to me.
>>

We created a summary of common issues and FAQ
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:09 GMT) Full text and rfc822 format available.

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

Previous Next


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