GNU bug report logs - #23422
stat -c %N returns strange results for file names including <TAB>

Previous Next

Package: coreutils;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Mon, 2 May 2016 09:29:02 UTC

Severity: normal

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: Pádraig Brady <P <at> draigBrady.com>
To: 23422 <at> debbugs.gnu.org
Subject: bug#23422: stat -c %N returns strange results for file names including <TAB>
Date: Thu, 3 Nov 2016 16:04:00 +0000
[Message part 1 (text/plain, inline)]
unarchive 23422
stop

On 05/05/16 09:23, Pádraig Brady wrote:
> Both points are valid.
> %N had a defacto style on Linux until now, but it was not documented.
> %N is not a standard style as it produces unquoted output on BSD for example.
> 
> For the next version of coreutils we'll document the default format
> and allow selection of the quoting style used.

Patch to do the above is attached.

thanks,
Pádraig

[stat-N-QUOTING_STYLE.patch (text/x-patch, attachment)]

This bug report was last modified 8 years and 253 days ago.

Previous Next


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