summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-11-03 12:56:22 +0000
committerPádraig Brady <P@draigBrady.com>2015-11-04 23:30:15 +0000
commit5ef08864113505c6392158c9fac9a6cb1b3ac0e6 (patch)
tree03989580af0b143935d1319e69f6fd519d880aab /NEWS
parent697b8ce26549cceffa8745a1dc0f13654173c575 (diff)
downloadcoreutils-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--NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 30603e62e..38b466465 100644
--- a/NEWS
+++ b/NEWS
@@ -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,