Commit 2ed5c11d9bf7293179fcc536fa4fe3aed8f7ab7d

Pádraig Brady 2016-09-26T15:13:34

quotearg: minimize shell quoting using double quotes I.E. 'it'\''s awkward like this'; "it's better like this" * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single quote in encountered then use double quotes (c style quoting) when possible, as it simplifies the quoting. * tests/test-quotearg-simple.c: Add test cases. * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account for the fact we now may write beyond the returned length.