GNU bug report logs - #26991
ls-quotes: new quoting takes up unnecessary space

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: L A Walsh <coreutils@HIDDEN>; Done: Assaf Gordon <assafgordon@HIDDEN>; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 26991-done <at> debbugs.gnu.org:


Received: (at 26991-done) by debbugs.gnu.org; 13 Dec 2018 20:35:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 13 15:35:03 2018
Received: from localhost ([127.0.0.1]:46875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gXXhH-0000z2-65
	for submit <at> debbugs.gnu.org; Thu, 13 Dec 2018 15:35:03 -0500
Received: from mail-pl1-f175.google.com ([209.85.214.175]:46039)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1gXXhE-0000yK-RY
 for 26991-done <at> debbugs.gnu.org; Thu, 13 Dec 2018 15:35:01 -0500
Received: by mail-pl1-f175.google.com with SMTP id a14so1578191plm.12
 for <26991-done <at> debbugs.gnu.org>; Thu, 13 Dec 2018 12:35:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=QxbBbBo6R+x14VlXI9T3HsrKg/nmnW04T16k/ShCYH4=;
 b=LevOCYzXGVdS6FDFWmQBRdWU7/e8IQ0B4Utx2YESZBjYc+wvGN9mkZl6tE0zlz0Obi
 2sQFarp1UqgBUDstb/MxWeHX8VICWDBI2/v6CBWphoi5PZM0+VNaTRopXzrNvzNTo6RL
 apdvMs+kNSIjGsbON1DPJoJtBVphXGYCqg40XLR9tDvN/Y7aeDlgw/YgeHTr3LsvP6+i
 zamYeonMsOuYki/k1Y2+Z/aS0nSni03IUE7GhmiT3DKOhbICYEKlVi7HskSll7sbAwSh
 hcPU/wODOtb/T37Zzd7Vu4d5L1xUZ8hBJ6xsxegVhhXJuFhKYiygBSbiFtxOUSvwBqOc
 XYkA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:cc:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=QxbBbBo6R+x14VlXI9T3HsrKg/nmnW04T16k/ShCYH4=;
 b=NSNhFui5KUMjDHhzK7MoLQRrvLWSv7jk1u1mbO8PSr9WnMN083WVmC/S8RcE53Pd2w
 +y83I9+3cFY8w32Pibv7v4wtcpFLpjo2rtSWVAVjnc4EI81M7XQIi6AjFkEMRbDA18K6
 8w6DksFCi2gGBJw2tKMRDkTe7jMZT6h8AK/IJfG/tXEKrRfTSQmDAm9Xyl8gQgQtJINp
 r6wX92EsBVbs+9c38+9AZzyXPiehomDRaKNXnsXcbFSS1nonzuYxdk4l/teRG9Q2wiBe
 sJ9F8lwtHEgcU0H7CB8Bw/cS1ce4IwlWA8dTPKeTPRo7J+1CrGxjbPb7Ndo8MkL1Wsrv
 nQ7A==
X-Gm-Message-State: AA+aEWagi8NSHtgKcg52dVrzbt7H4wZ44bSxyupRa3Hey+0Df5ntu374
 Q8jntC7rVu42xVoGo3CqrsZG441wll8=
X-Google-Smtp-Source: AFSGD/XIV+AEfim83h9bEUnpqD8smHa7uORfmgjrAnasNzKoKtAbQBRr0dyT+IlzBfXwHClrZMMWxA==
X-Received: by 2002:a17:902:9887:: with SMTP id
 s7mr243631plp.199.1544733294584; 
 Thu, 13 Dec 2018 12:34:54 -0800 (PST)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 d3sm3661563pgl.64.2018.12.13.12.34.53
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 13 Dec 2018 12:34:53 -0800 (PST)
Subject: Re: bug#26991: New quoting takes up unnecessary space
To: L A Walsh <coreutils@HIDDEN>
References: <591E9521.5040706@HIDDEN>
 <b42fd171-9cb6-970b-d50d-67eb081023a5@HIDDEN>
 <591F8FC9.8000106@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <1c3ddff7-7b3a-12b8-1cb1-710b15ec9e9e@HIDDEN>
Date: Thu, 13 Dec 2018 13:34:52 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.3.0
MIME-Version: 1.0
In-Reply-To: <591F8FC9.8000106@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 26991-done
Cc: 26991-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On 2017-05-19 6:37 p.m., L A Walsh wrote:
> 
> 
> Pádraig Brady wrote:
>> On 19/05/17 07:48, L A Walsh wrote:
>>>
>>> The new format uses extra spacing on columns where it isn't needed --
>>> but the extra space isn't enough to handle the 1 file that was quoted
>>> (needs 5 extra columns).  Where does it get '3' (and why doesn't it use
>>> 2?)?
>>


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@HIDDEN .

regards,
  - assaf




Notification sent to L A Walsh <coreutils@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Assaf Gordon <assafgordon@HIDDEN>:
You have taken responsibility. Full text available.
Changed bug title to 'ls-quotes: new quoting takes up unnecessary space' from 'New quoting takes up unnecessary space' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 26991 <at> debbugs.gnu.org:


Received: (at 26991) by debbugs.gnu.org; 20 May 2017 00:37:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 19 20:37:36 2017
Received: from localhost ([127.0.0.1]:55788 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dBsOm-0005oK-6p
	for submit <at> debbugs.gnu.org; Fri, 19 May 2017 20:37:36 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:40962
 helo=Ishtar.sc.tlinx.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1dBsOj-0005oB-UT
 for 26991 <at> debbugs.gnu.org; Fri, 19 May 2017 20:37:34 -0400
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 v4K0bT2a030602; Fri, 19 May 2017 17:37:32 -0700
Message-ID: <591F8FC9.8000106@HIDDEN>
Date: Fri, 19 May 2017 17:37:29 -0700
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= <P@HIDDEN>
Subject: Re: bug#26991: New quoting takes up unnecessary space
References: <591E9521.5040706@HIDDEN>
 <b42fd171-9cb6-970b-d50d-67eb081023a5@HIDDEN>
In-Reply-To: <b42fd171-9cb6-970b-d50d-67eb081023a5@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 26991
Cc: 26991 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)



Pádraig Brady wrote:
> On 19/05/17 07:48, L A Walsh wrote:
>>
>> The new format uses extra spacing on columns where it isn't needed --
>> but the extra space isn't enough to handle the 1 file that was quoted
>> (needs 5 extra columns).  Where does it get '3' (and why doesn't it use
>> 2?)?
> 
> Yes one can construct edge cases where this isn't ideal.
> The normal case though is the quoted files are interspersed
> in various columns. 
---
  Like this?:

'"aaaa'\''"'   bbbbbbb0   'ddd ddd1'   eeeeeee0   ggggggg    hhhhhhh1
'aaa aaa1'     bbbbbbb2    ddddddd     eeeeeee2   ggggggg0   hhhhhhh2
 aaaaaaa0     'ccc ccc1'   ddddddd0    fffffff    ggggggg1
 aaaaaaa2      ccccccc     ddddddd2    fffffff0   ggggggg2
'bbb bbb1'     ccccccc0   'eee eee1'   fffffff1   hhhhhhh
 bbbbbbb       ccccccc2    eeeeeee     fffffff2   hhhhhhh0
        1234567        1234        1234        123        123

You have 3 different spacings between columns.  Your argument
of using 3-spaces for an extra quote vs. 2 when not needed is 
looking pretty unsupportable since it doesn't use 3 when quotes 
ARE needed (it uses 4).  The above could just as easily have been:

'"aaaa'\''"'   bbbbbbb0   'ddd ddd1'  eeeeeee0   ggggggg    hhhhhhh1
'aaa aaa1'     bbbbbbb2    ddddddd    eeeeeee2   ggggggg0   hhhhhhh2
 aaaaaaa0     'ccc ccc1'   ddddddd0   fffffff    ggggggg1
 aaaaaaa2      ccccccc     ddddddd2   fffffff0   ggggggg2
'bbb bbb1'     ccccccc0    eeeeeee1   fffffff1   hhhhhhh
 bbbbbbb       ccccccc2    eeeeeee    fffffff2   hhhhhhh0

And this: 

'"aaa'\''"'   bbbbbb     cccccc0    dddddd2    ffffff    gggggg0   hhhhhh1
'aaa aa1'     bbbbbb0    cccccc2   'eee ee1'   ffffff0   gggggg1   hhhhhh2
 aaaaaa0      bbbbbb2   'ddd dd1'   eeeeee     ffffff1   gggggg2
 aaaaaa2     'ccc cc1'   dddddd     eeeeee0    ffffff2   hhhhhh
'bbb bb1'     cccccc     dddddd0    eeeeee2    gggggg    hhhhhh0
        12345        123        123         123       123       123
12345678901234567890123456789012345678901234567890123456789012345678901234567890

Could have been:

'"aaa'\''"'  'bbb bb1' 	'ccc cc1'  dddddd1  eeeeee1  ffffff   gggggg   hhhhhh
'aaa aa1'     bbbbb      cccccc    dddddd   eeeeee   ffffff0  gggggg0  hhhhhh0
 aaaaaa0      bbbbb0     cccccc0   dddddd0  eeeeee0  ffffff1  gggggg1  hhhhhh1
 aaaaaa2      bbbbb2     cccccc2   dddddd2  eeeeee2  ffffff2  gggggg2  hhhhhh2
           12         12         12       12       12       12       12 
12345678901234567890123456789012345678901234567890123456789012345678901234567890
 

> It's more important to have consistent spacing I think on modern terminals.
----
	But you don't as shown above -- you simply waste an extra space using
3 columns of padding rather than 2.


> Anyway with layouts
> like this you get more wasted space when a few files have
> relatively longer names, irrespective of quoting, which is
> a much more common issue.
---
	Irrelevant. You are using 3 spaces when no quoting is
needed, instead of 2, forcing an extra column into all output
regardless of name length.

>
> The spacing is increased to 3 to allow for an extra space
> for left alignment of non quoted items with quoted ones.
---
	As shown above it isn't needed.  I have 2 between 2 quoted items,
between a combo w/1-quoted and 1 not, and 2 between non-quoted.  2-spaces
between visible characters in all columns.

> The alignment is more important for long listing I think,
> but thought it a net benefit for other formats also.
---
	For a long listing, you don't multiply the spacing
by N columns.  You only have 1 column, so ANY filename w/a quote 
would require an extra space for the entire (1) column to line up, but
in a long listing things are still odd looking w/the last column sticking out:
> ls -l *[ab]* 
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:28 '"aaa'\''"'
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 'aaa aa1'
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27  aaaaaa0
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27  aaaaaa2
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 'bbb bb1'
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27  bbbbbb
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27  bbbbbb0
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27  bbbbbb2

---vs. non quoted format---

-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:28 "aaa'"
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 aaa aa1
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 aaaaaa0
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 aaaaaa2
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 bbb bb1
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 bbbbbb
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 bbbbbb0
-rw-rw-rw-+ 1 Bliss\law Bliss\lawgroup 0 May 18 23:27 bbbbbb2

Very simply, the new format is wasting space with no justifiable 
reason.





Information forwarded to bug-coreutils@HIDDEN:
bug#26991; Package coreutils. Full text available.

Message received at 26991 <at> debbugs.gnu.org:


Received: (at 26991) by debbugs.gnu.org; 19 May 2017 08:59:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 19 04:59:38 2017
Received: from localhost ([127.0.0.1]:54377 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dBdl4-0000HY-Mb
	for submit <at> debbugs.gnu.org; Fri, 19 May 2017 04:59:38 -0400
Received: from mail.magicbluesmoke.com ([82.195.144.49]:35264)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1dBdl2-0000HQ-KG
 for 26991 <at> debbugs.gnu.org; Fri, 19 May 2017 04:59:37 -0400
Received: from localhost.localdomain (unknown [109.79.198.73])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 5093694E9;
 Fri, 19 May 2017 09:59:35 +0100 (IST)
Subject: Re: bug#26991: New quoting takes up unnecessary space
To: L A Walsh <coreutils@HIDDEN>, 26991 <at> debbugs.gnu.org
References: <591E9521.5040706@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
Message-ID: <b42fd171-9cb6-970b-d50d-67eb081023a5@HIDDEN>
Date: Fri, 19 May 2017 09:59:34 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <591E9521.5040706@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 26991
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On 19/05/17 07:48, L A Walsh wrote:
> 
> 
> The new format uses extra spacing on columns where it isn't needed --
> but the extra space isn't enough to handle the 1 file that was quoted
> (needs 5 extra columns).  Where does it get '3' (and why doesn't it use
> 2?)?

Yes one can construct edge cases where this isn't ideal.
The normal case though is the quoted files are interspersed
in various columns. It's more important to have consistent
spacing I think on modern terminals. Anyway with layouts
like this you get more wasted space when a few files have
relatively longer names, irrespective of quoting, which is
a much more common issue.

The spacing is increased to 3 to allow for an extra space
for left alignment of non quoted items with quoted ones.

The alignment is more important for long listing I think,
but thought it a net benefit for other formats also.

Pádraig.





Information forwarded to bug-coreutils@HIDDEN:
bug#26991; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 May 2017 06:48:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 19 02:48:22 2017
Received: from localhost ([127.0.0.1]:54267 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dBbi2-0005g6-6c
	for submit <at> debbugs.gnu.org; Fri, 19 May 2017 02:48:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47072)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1dBbi0-0005fs-VL
 for submit <at> debbugs.gnu.org; Fri, 19 May 2017 02:48:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1dBbhv-0005Do-2C
 for submit <at> debbugs.gnu.org; Fri, 19 May 2017 02:48:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:55682)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1dBbhu-0005DW-VG
 for submit <at> debbugs.gnu.org; Fri, 19 May 2017 02:48:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38025)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1dBbht-0004AA-Ra
 for bug-coreutils@HIDDEN; Fri, 19 May 2017 02:48:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1dBbhp-0005Be-UP
 for bug-coreutils@HIDDEN; Fri, 19 May 2017 02:48:13 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:41726
 helo=Ishtar.sc.tlinx.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1dBbhp-0005B0-Ad
 for bug-coreutils@HIDDEN; Fri, 19 May 2017 02:48:09 -0400
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 v4J6m1sO052237
 for <bug-coreutils@HIDDEN>; Thu, 18 May 2017 23:48:03 -0700
Message-ID: <591E9521.5040706@HIDDEN>
Date: Thu, 18 May 2017 23:48:01 -0700
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: bug-coreutils@HIDDEN
Subject: New quoting takes up unnecessary space
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic] [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)



The new format uses extra spacing on columns where it isn't needed --
but the extra space isn't enough to handle the 1 file that was quoted
(needs 5 extra columns).  Where does it get '3' (and why doesn't it use
2?)?

Here are 32 files:
>  ls
aaaaaaa   bbbbbbb   ccccccc   ddddddd   eeeeeee   fffffff   ggggggg   
hhhhhhh
aaaaaaa0  bbbbbbb0  ccccccc0  ddddddd0  eeeeeee0  fffffff0  ggggggg0  
hhhhhhh0
aaaaaaa1  bbbbbbb1  ccccccc1  ddddddd1  eeeeeee1  fffffff1  ggggggg1  
hhhhhhh1
aaaaaaa2  bbbbbbb2  ccccccc2  ddddddd2  eeeeeee2  fffffff2  ggggggg2  
hhhhhhh2
#       ^^ -- 2 chars separate

>  mv aaaaaaa \"aaaa\'\"    #same number of characters
>  ls  
'"aaaa'\''"'   bbbbbbb0   ccccccc1   ddddddd2   fffffff    ggggggg0   
hhhhhhh1
 aaaaaaa0      bbbbbbb1   ccccccc2   eeeeeee    fffffff0   ggggggg1   
hhhhhhh2
 aaaaaaa1      bbbbbbb2   ddddddd    eeeeeee0   fffffff1   ggggggg2
 aaaaaaa2      ccccccc    ddddddd0   eeeeeee1   fffffff2   hhhhhhh
 bbbbbbb       ccccccc0   ddddddd1   eeeeeee2   ggggggg    hhhhhhh0
                       ^^^ - now using minimum of 3 spaces between columns










Acknowledgement sent to L A Walsh <coreutils@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#26991; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 13 Dec 2018 20:45:02 UTC

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