[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23422: stat -c %N returns strange results for file names including <
From: |
Michael Albinus |
Subject: |
bug#23422: stat -c %N returns strange results for file names including <TAB> |
Date: |
Mon, 02 May 2016 16:27:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Eric Blake <address@hidden> writes:
Hi Eric,
>> 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' .
>
> That is intentional; in the same vein as the way 'ls' changed its
> default output for files with awkward characters. The defaults are to
> quote in a way that is reusable by shells that understand $'' quoting
> (since POSIX will be adding support for it). And you can always select
> other quoting methods, via the QUOTING_STYLE environment variable.
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'
Best regards, Michael.
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Michael Albinus, 2016/05/02
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Pádraig Brady, 2016/05/02
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Michael Albinus, 2016/05/02
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Ruediger Meier, 2016/05/02
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Paul Eggert, 2016/05/02
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Ruediger Meier, 2016/05/04
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Andreas Schwab, 2016/05/04
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Ruediger Meier, 2016/05/04
- bug#23422: stat -c %N returns strange results for file names including <TAB>, Andreas Schwab, 2016/05/04