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


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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: bug-coreutils <at> gnu.org
Subject: stat -c %N returns strange results for file names including <TAB>
Date: Mon, 02 May 2016 11:27:25 +0200
Hi,

I have a file called "foo<TAB>bar". Yes, it includes the <TAB> char in
its name. When I call "stat -c %N", I get 'foo'$'\t''bar' .

This looks pretty strange. It is with "stat (GNU coreutils) 8.25". Earlier
stat versions, say "stat (GNU coreutils) 6.12" on a very old machine I
have access too, used to return `foo\tbar' .

Best regards, Michael.




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.