GNU bug report logs - #64392
cksum: escaping issues of --check output

Previous Next

Package: coreutils;

Reported by: Christoph Anton Mitterer <calestyo <at> scientia.org>

Date: Sat, 1 Jul 2023 00:22:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 64392 <at> debbugs.gnu.org (full text, mbox):

From: Christoph Anton Mitterer <calestyo <at> scientia.org>
To: Pádraig Brady <P <at> draigBrady.com>, 64392 <at> debbugs.gnu.org
Subject: Re: bug#64392: cksum: escaping issues of --check output
Date: Sat, 01 Jul 2023 19:20:38 +0200
On Sat, 2023-07-01 at 17:07 +0100, Pádraig Brady wrote:
> Right. We traditionally didn't escape any chars in the --check
> output,
> but that changed with
> https://github.com/coreutils/coreutils/commit/646902b30
> To minimize escaping, that patch only considered the '\n' character,
> but we should also have considered file names with a leading '\'.
> 
> The attached should address this.

Thanks, but wouldn't it be better to use exactly the same escaping as
in the sums output? I.e. also escaping \r?

Also, documenting the escaping behaviour in info/manpages?


Cheers,
Chris.




This bug report was last modified 2 years and 7 days ago.

Previous Next


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