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 #23 received at 23422 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 23422 <at> debbugs.gnu.org, Eric Blake <eblake <at> redhat.com>
Subject: Re: bug#23422: stat -c %N returns strange results for file names
 including <TAB>
Date: Mon, 02 May 2016 18:27:10 +0200
Pádraig Brady <P <at> draigBrady.com> writes:

>> Thanks for the hint with QUOTING_STYLE. However, it doesn't work for me:
>>
>> # env QUOTING_STYLE=escape /usr/bin/stat -c %N /tmp/foo*
>> '/tmp/foo'$'\t''bar'
>
> Right, stat currently hard codes the "shell" style.
> It probably makes sense to have this configurable.
> I'll do that for the next release.

Thanks! In general I don't care whether you implement it via environment
variable or command parameter. The environment variable has the
advantage, that the call of stat would be backwards compatible.

> thanks,
> Pádraig.

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.