[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49716: no -print0 for ls?
From: |
Pádraig Brady |
Subject: |
bug#49716: no -print0 for ls? |
Date: |
Sun, 25 Jul 2021 15:43:03 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 |
On 24/07/2021 20:26, Paul Eggert wrote:
On 7/24/21 10:48 AM, Vito Caputo wrote:
Couldn't we make
-0 and any aliases shorthand for a new --format=WORD where WORD is
names0 or something. That way it's automatically mutually exclusive
with the other formats?
It would make sense to invent a new --quoting-style='literal0' option
(by analogy with the existing --quoting-style='literal'), and make ls -0
an alias for ls --quoting-style='literal0'. I could add support for that
if there's interest.
It's one of those marginal ones I think,
but if you think it's warranted, that's cool.
I would use the more consistent option for this though, i.e.:
-z, --zero end each output line with NUL, not newline
We could document that -z implies:
--quoting-style=literal --show-control-chars --format=single-column
The --format=single-column implication is debatable.
I'm suggesting it as robust programmatic parsing of --format=long is
pretty much impossible, which is not obvious.
thanks,
Pádraig
- bug#49716: no -print0 for ls?, Vito Caputo, 2021/07/24
- bug#49716: no -print0 for ls?, Pádraig Brady, 2021/07/24
- bug#49716: no -print0 for ls?, Vito Caputo, 2021/07/24
- bug#49716: no -print0 for ls?, Pádraig Brady, 2021/07/24
- bug#49716: no -print0 for ls?, Vito Caputo, 2021/07/24
- bug#49716: no -print0 for ls?, Paul Eggert, 2021/07/24
- bug#49716: no -print0 for ls?,
Pádraig Brady <=
- 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, 2021/07/28