GNU bug report logs -
#49716
no -print0 for ls?
Previous Next
Reported by: Vito Caputo <vcaputo <at> pengaru.com>
Date: Sat, 24 Jul 2021 09:45:02 UTC
Severity: normal
Tags: notabug
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #33 received at submit <at> debbugs.gnu.org (full text, mbox):
On 25/07/2021 16:28, Paul Eggert wrote:
> On 7/25/21 7:43 AM, Pádraig Brady wrote:
>> I would use the more consistent option for this though, i.e.:
>>
>> -z, --zero end each output line with NUL, not newline
>
> That's a different option, no? My proposal was something that would
> affect every program using --quoting-style, and it would quote
> individual filenames and suchlike. The --zero option, in contrast, would
> mean 'ls' would output NUL every place it normally outputs a newline as
> part of the own format that it generates. These are different things.
>
> It sounds like your approach is better than what I proposed, though.
>
> --null makes sense, but I'm not entirely sold on having a short option
> for this rarely-needed functionality. Perhaps it'd be better to add it
> with just the long name for now. If it gets used a lot we could add a
> short alias later.
Right we should be especially careful of short options with ls.
A long only option should suffice
cheers,
Pádraig
This bug report was last modified 3 years and 353 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.