[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: |
Tue, 27 Jul 2021 18:14:31 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 7/26/21 8:00 AM, Pádraig Brady wrote:
So I'd have a slight preference for --zero.
Also what about having --zero imply:
--quoting-style=literal --show-control-chars --format=single-column
That seems like a fine shortcut given that would be correct in the vast
majority of cases,
and that the need for the above may not be obvious to users.
Also a small point; should --dired disable --null as it may then be non
parseable?
Thanks, all good suggestions. For --dired vs --zero I thought it better
simply to prohibit the combination since neither should be in 'ls' shell
aliases, and prohibiting means we can add it later if we like. I
installed the attached patches to do this (plus the other stuff I
mentioned in my reply to Berny).
The first patch is a cleanup because I had a bit of trouble following
the forest of 'if's inside of ls.c's decode_switches function and I
thought it better to avoid unnecessary syscalls while I was at it.
The second patch does the real work.
0001-ls-compute-defaults-more-lazily.patch
Description: Text Data
0002-ls-rename-null-to-zero-Bug-49716.patch
Description: Text Data
- bug#49716: no -print0 for ls?, (continued)
- 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, 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 <=
- 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