GNU bug report logs - #49716
no -print0 for ls?

Previous Next

Package: coreutils;

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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>, Vito Caputo <vcaputo <at> pengaru.com>
Cc: 49716 <at> debbugs.gnu.org
Subject: bug#49716: no -print0 for ls?
Date: Sun, 25 Jul 2021 08:28:06 -0700
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.




This bug report was last modified 3 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.