diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-11-03 12:56:22 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-11-04 23:30:15 +0000 |
commit | 5ef08864113505c6392158c9fac9a6cb1b3ac0e6 (patch) | |
tree | 03989580af0b143935d1319e69f6fd519d880aab /NEWS | |
parent | 697b8ce26549cceffa8745a1dc0f13654173c575 (diff) | |
download | coreutils-5ef08864113505c6392158c9fac9a6cb1b3ac0e6.tar.xz |
printf: support the %q format to quote for shell
* src/printf.c (usage): Mention the new format.
(print_formatted): Handle the quoting by calling
out to the quotearg module with "shell-escape" mode.
* doc/coreutils.texi (printf invocation): Document %q.
* tests/misc/printf-quote.sh: New test.
* tests/local.mk: Reference new test.
* NEWS: Mention the new feature.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -15,6 +15,12 @@ GNU coreutils NEWS -*- outline -*- base32 is added to complement the existing base64 command, and encodes and decodes printable text as per RFC 4648. +** New features + + printf now supports the '%q' format to print arguments in a form that + is reusable by most shells, with non-printable characters escaped + with the POSIX proposed $'...' syntax. + ** Changes in behavior base64 no longer supports hex or oct --wrap parameters, |