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: Ruediger Meier <sweet_f_a <at> gmx.de>
Cc: 23422 <at> debbugs.gnu.org
Subject: bug#23422: stat -c %N returns strange results for file names including <TAB>
Date: Thu, 5 May 2016 09:23:00 +0100
On 04/05/16 22:59, Andreas Schwab wrote:
> Ruediger Meier <sweet_f_a <at> gmx.de> writes:
>
>> On Wednesday 04 May 2016, Andreas Schwab wrote:
>>> Ruediger Meier <sweet_f_a <at> gmx.de> writes:
>>>> Anyways the incompatible change is IMO not acceptable. %N is
>>>> probably most likely used in scripts which rely on the known style.
>                                                              ^^^^^^^^^^^
>>>
>>> The style was never documented (and still isn't).
>>
>> What does this mean? Using %N wasn't and still isn't recommended because
>> behavior is undefined? Come on ...

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.

thanks,
Pádraig.






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.