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: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Pádraig Brady <P <at> draigBrady.com>, 23422 <at> debbugs.gnu.org
Subject: bug#23422: stat -c %N returns strange results for file names including <TAB>
Date: Thu, 3 Nov 2016 23:29:23 +0100
On 11/03/2016 05:04 PM, Pádraig Brady wrote:
> Subject: [PATCH] stat: make --format=%N honor the QUOTING_STYLE env var
> 
> * doc/coreutils.texi (stat invocation): Describe the
> QUOTING_STYLE values now supported.
> * src/stat.c (getenv_quoting_style): A new function called
> from main, that sets the default quoting style for quotearg.
> (main): Call getenv_quoting_style() when %N specified.
> * tests/misc/stat-fmt.sh: Add a test case.
> * NEWS: Mention the improvement.
> Fixes http://bugs.gnu.org/23422

The patch looks good to me, but the above URL seems to have
temporary redirection problems:

  $ wget -S -O - http://bugs.gnu.org/23422 2>&1 | sed -n '/Location/{p;q}'
  Location: http://debbugs.gnu.org23422

Have a nice day,
Berny




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

Previous Next


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