GNU bug report logs - #51507
ls incorrectly displays single quotes

Previous Next

Package: coreutils;

Reported by: Joel Hansen <thejoelhansen <at> gmail.com>

Date: Sat, 30 Oct 2021 10:18:03 UTC

Severity: normal

Tags: wontfix

Merged with 42766

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Joel Hansen <thejoelhansen <at> gmail.com>
Cc: 51507 <at> debbugs.gnu.org
Subject: Re: bug#51507: ls incorrectly displays single quotes
Date: Sat, 30 Oct 2021 17:01:56 -0700
On 10/29/21 13:32, Joel Hansen wrote:
> ls is incorrectly displaying single quotes around folders with spaces in
> them. This is confusing and unhelpful.

Opinions evidently differ on that point. That being said, here's an 
example where the quotes help and where your suggestion of using -N 
everywhere would introduce confusion.

$ ls -lN
total 0
lrwxrwxrwx 1 eggert eggert 6 Oct 30 16:55 c -> a -> b
lrwxrwxrwx 1 eggert eggert 1 Oct 30 16:56 c -> a -> b
$ ls -l
total 0
lrwxrwxrwx 1 eggert eggert 6 Oct 30 16:55  c -> 'a -> b'
lrwxrwxrwx 1 eggert eggert 1 Oct 30 16:56 'c -> a' -> b




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.