From: Nick Bowler Date: Wed, 22 Apr 2015 01:47:44 +0000 (-0400) Subject: Update DX_COMMAND_OUTPUT to handle newlines and backslashes. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/e5cf340e0235a578efb05d004ec1a230d3ddb987?hp=e5cf340e0235a578efb05d004ec1a230d3ddb987 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. ---