]> Savannah Git Hosting - gnulib.git/commit
quotearg: add support for $'' shell escaping
authorPádraig Brady <P@draigBrady.com>
Fri, 30 Oct 2015 22:49:16 +0000 (22:49 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 2 Nov 2015 11:32:34 +0000 (11:32 +0000)
commitdf3cd2684d2bb01d3d7cbe066e3b67c96c8fd1f9
treea62d0172123311577c16f7c432a98b71ffc576ad
parent45228d9689a677588157fc8d26725a076f4f21e8
quotearg: add support for $'' shell escaping

* lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
items and descriptions.
* lib/quotearg.c (quotearg_buffer_restyled): Add support for the
above types by quoting like "shell", but using $'...' syntax
for non printable characters, which should provide unambiguous
printable output for any input.
* tests/test-quotearg-simple.c: Update accordingly.
ChangeLog
lib/quotearg.c
lib/quotearg.h
tests/test-quotearg-simple.c