--- Begin Message ---
Subject: |
ls 8.26: discrepancy between `ls' and `ls -1' in the alignment of quoted and nonquoted items |
Date: |
Wed, 30 Nov 2016 15:19:00 -0500 |
coreutils 8.26 includes the following improvement:
> ls now aligns quoted items with non quoted items, which is easier to read,
> and also better indicates that the quote is not part of the actual name.
which I find to be a welcome addition to the quoting behavior introduced in
8.25. However, this improvement does not apply to the -1 option, which is
puzzling to me. Compare the following (coreutils 8.26 on macOS 10.12.1,
80-column terminal, bash or zsh):
$ ls
'['
'a very very very very very very very very very very very very long
filename'
b2sum
base32
base64
basename
$ ls -1
'['
'a very very very very very very very very very very very very long
filename'
b2sum
base32
base64
basename
The second invocation with the -1 option leaves much to be desired in
comparison to the first invocation.
-1 should probably receive the same alignment treatment?
Best,
Zhiming
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#25078: ls 8.26: discrepancy between `ls' and `ls -1' in the alignment of quoted and nonquoted items |
Date: |
Thu, 13 Dec 2018 13:27:43 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 |
Hello,
On 2016-11-30 7:12 p.m., Zhiming Wang wrote:
On Nov 30, 2016, at 8:41 PM, Paul Vint <address@hidden> wrote:
The alignment change is helpful, but I do have an argument against doing the
same in the -1 case: It breaks something many of us have done in scripts.
It breaks nothing. Quoting and alignment by default only happens when stdout is
a tty. Also, ls prints one entry per line when stdout is not a tty; you don't
even need -1.
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 address@hidden .
regards,
- assaf
--- End Message ---