stat: make --format=%N honor the QUOTING_STYLE env var
commit9ad400f1adfcb90289107afcbc49469560ba14b5
authorPádraig Brady <P@draigBrady.com>
Thu, 3 Nov 2016 15:36:48 +0000 (3 15:36 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 5 Nov 2016 00:44:06 +0000 (5 00:44 +0000)
tree3c6caf709f0713364ac2b9d9270bff211052b414
parent6f64cb64f7e1f14bb8968a8838cc3bbe9d28d10b
stat: make --format=%N honor the QUOTING_STYLE env var

* doc/coreutils.texi (stat invocation): Describe the
QUOTING_STYLE values now supported.
* src/stat.c (getenv_quoting_style): A new function called
from main, that sets the default quoting style for quotearg.
(main): Call getenv_quoting_style() when %N specified.
* tests/misc/stat-fmt.sh: Add a test case.
* NEWS: Mention the improvement.
Fixes http://bugs.gnu.org/23422
NEWS
doc/coreutils.texi
src/stat.c
tests/misc/stat-fmt.sh