[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49716: no -print0 for ls?
From: |
Paul Eggert |
Subject: |
bug#49716: no -print0 for ls? |
Date: |
Wed, 28 Jul 2021 12:37:14 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 7/28/21 4:57 AM, Pádraig Brady wrote:
I see --zero implies --format=single-column, but allows --format=long.
That's the right default, but also most flexible.
Yes, it's a little tricky here.
For quite some time the ls -1 (digit 1 option) code has disagreed with
its documentation. The doc said '-1' is equivalent to
'--format=single-column', but the code makes '-l -1' equivalent to '-l'
whereas '-l --format=single-column' is equivalent to no option at all.
I see three possible fixes here:
1. Change the doc to match the code, i.e., change the documentation to
say that -1 is not the same thing as --format=single-column.
2. Change the code so that --format=single-column also has no effect
after -l, and change the doc to document this.
3. Change the code to match the doc.
(3) would not conform to POSIX, so that's out. (1) is less work for us
and does not affect existing uses, so I installed the first attached
patch to implement (1). This first patch also cleans up a bunch of other
documentation cruft that I noticed in the 'ls' documentation. The second
patch updates up some old-fashioned terminology I noticed while working
on the first patch.
You could talk me into (2), I suppose....
0001-doc-improve-ls-documentation.patch
Description: Text Data
0002-doc-modernize-usage-of-disk-and-core.patch
Description: Text Data
- bug#49716: no -print0 for ls?, (continued)
- bug#49716: no -print0 for ls?, Pádraig Brady, 2021/07/25
- bug#49716: no -print0 for ls?, Paul Eggert, 2021/07/25
- bug#49716: no -print0 for ls?, Pádraig Brady, 2021/07/25
- bug#49716: no -print0 for ls?, Paul Eggert, 2021/07/26
- bug#49716: no -print0 for ls?, Pádraig Brady, 2021/07/26
- bug#49716: no -print0 for ls?, Bernhard Voelker, 2021/07/26
- bug#49716: no -print0 for ls?, Paul Eggert, 2021/07/26
- bug#49716: no -print0 for ls?, Paul Eggert, 2021/07/27
- bug#49716: no -print0 for ls?, Pádraig Brady, 2021/07/28
- bug#49716: no -print0 for ls?, Vito Caputo, 2021/07/28
- bug#49716: no -print0 for ls?,
Paul Eggert <=