GNU bug report logs - #42766
file names with spaces are quoted in the output from ls

Previous Next

Package: coreutils;

Reported by: David Thomas <davidattheready <at> gmail.com>

Date: Sat, 8 Aug 2020 16:59:02 UTC

Severity: normal

Tags: wontfix

Merged with 51507

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: David Thomas <davidattheready <at> gmail.com>
Cc: 42766 <at> debbugs.gnu.org
Subject: Re: bug#42766: file names with spaces are quoted in the output from ls
Date: Sun, 9 Aug 2020 01:38:51 -0700
On 8/8/20 9:09 AM, David Thomas wrote:
> If most people think things are a bad idea, why do them?

I don't see any real evidence that most people think the change is a bad idea. 
Although there have been complaints, that doesn't mean most people are 
complaining, or that most people are unhappy about the change.

In practice I've found the new behavior to be significantly safer. I too often 
have to deal with files with shell metacharacters in their names (people send me 
all sorts of weird stuff). The old 'ls' behavior was quite dangerous in that 
respect.

> at first I was typing out the quotes to cd into them. Then I discovered it still worked to cd into them without typing the quotes

What file names were these, exactly? If 'ls' is overquoting, that's something we 
could fix without affecting safety.




This bug report was last modified 3 years and 194 days ago.

Previous Next


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