Subject: bug#23422: stat -c %N returns strange results for file names including <TAB>

From: Michael Albinus <[email-masked]>
Date: Mon, 02 May 2016 18:27:10 +0200

Pádraig Brady <[email-masked]> 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.