coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ls output changes considered unacceptable


From: Pádraig Brady
Subject: Re: ls output changes considered unacceptable
Date: Mon, 21 Nov 2016 01:51:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 15/11/16 19:18, Pádraig Brady wrote:
> On 18/02/16 09:17, Pádraig Brady wrote:
>> On 17/02/16 17:46, Michael Stone wrote:
>>> [new quoting style is] ambiguous. It isn't possible to tell from the output
>>> whether you're  looking at a really weird filename or something that's been 
>>> escaped.
>>> Recall the earlier point about the inability to configure a heterogenous 
>>> environment consistently, and the lack of visual indication of the 
>>> current QUOTING_STYLE.
>>
>> I agree with this.
>> An improvement suggested by someone else, would improve both the ambiguity
>> and the small alignment issue, by adding an extra space to ls -l output
>> if any names are quoted. That would also give a better indication that
>> ls was adding the quotes. I.E.:
>>
>> -rw-rw-r--.   1 padraig padraig    580 Dec 14 04:01  blah_blah
>> -rw-rw-r--.   1 padraig padraig    580 Dec 14 04:01 'blah blah'
> 
> Attached is a patch to implement the above alignment tweaks.

V2 attached makes these changes from V1

- Doesn't align for -1, -w0, or -m
- Fixes misquoting for dir names containing ':' in --recursive mode
- Adds a test and a NEWS entry

cheers,
Pádraig

Attachment: ls-quote-align.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]