]> git.draconx.ca Git - dxcommon.git/commit
Update DX_COMMAND_OUTPUT to handle newlines and backslashes.
authorNick Bowler <nbowler@draconx.ca>
Wed, 22 Apr 2015 01:47:44 +0000 (21:47 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 28 Jun 2017 23:24:24 +0000 (19:24 -0400)
commite5cf340e0235a578efb05d004ec1a230d3ddb987
tree4af14979516650d7e7f8e976c0f8ad3c9333e094
parent85d3347f01e3d27541e5d2fadf5ab49cc6cf54f9
Update DX_COMMAND_OUTPUT to handle newlines and backslashes.

The 'read' builtin eats backslashes from the input, so this macro fails
to properly handle output containing backslashes.  Since the -r option
is not portable according to the Autoconf manual, fix up the input by
escaping all backslashes.

While we're at it, remove the "feature" which converts newlines to
spaces because it seems rather silly.
m4/cmdout.m4
tests/macros.at