GNU bug report logs - #33113
ls: incorrect quoting of "="

Previous Next

Package: coreutils;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Sun, 21 Oct 2018 23:45:02 UTC

Severity: normal

Tags: confirmed

Full log


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

From: Vincent Lefevre <vincent <at> vinc17.net>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 33113 <at> debbugs.gnu.org, Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#33113: incorrect and inconsistent quoting in ls output
Date: Sun, 28 Oct 2018 14:21:02 +0100
On 2018-10-27 07:28:26 -0700, Pádraig Brady wrote:
> On 23/10/18 17:54, Paul Eggert wrote:
> > On 10/22/18 1:44 AM, Vincent Lefevre wrote:
> >> On the behavior, there's still the issue concerning = and &.
> > 
> > Yes, you're right, there's no need to quote = with -b.
> 
> The reason \= is quoted with -bF is to distinguish socket
> names that end in =. An edge case indeed, though the issue
> is not particular to '=', but all of the classifier chars.
> 
> Now we could quote with -F only if these chars are at the end,
> though I'm not sure that complexity is warranted.

In any case, this form of quoting incorrect with -b, as \= is invalid
in ISO C.

-- 
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




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

Previous Next


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